Update iPhone to the latest iOS version
Delete suspicious apps
Clear Safari history and website data
Check for unknown configuration profiles
Review calendar subscriptions for spam
Remove suspicious VPNs or device management profiles
Restart the iPhone
Reset network settings if needed
Back up important data
Erase all content and settings if malware is strongly suspected
Restore the iPhone from a trusted backup
Contact Apple Support if problems continue
