You address where you will see the biggest change first.
Do you have restriction at the hip?
If addressing your ankle first works then do it.
Placing a weight under your heel changes upstream positioning at the hip.
Here is one that can give you more info on hips vs ankles
Squat Quick Test: Is it Tight Ankles or Tight Hips? | Community Video