Throughout the whole immigration journey UKVI will require the name on the passport.
Changing the name on the passport is a personal decision.