The Harry Potter games covering Years 5–7 (Order of the Phoenix, Half-Blood Prince, Deathly Hallows Part 1 & 2) do not allow character customization. You play as Harry Potter in a fixed, story-driven experience.
From Year 5 onward, the games lock you into Harry’s canonical look and narrative.