How to remove a virus from an iPhone
Luckily, iPhone virus removal is fairly straightforward, since the virus or malware can’t actually break into iOS. That’s why most hackers go after software developer kits, which are then used to create apps — and it’s also the reason you shouldn’t jailbreak your iPhone and download third-party apps.
If you think a certain app may be compromised (maybe your problems started after you downloaded it, or it’s redirecting you without permission), you can try uninstalling it and seeing if that clears up the problem.
If not, you have a few other options.