Virus in your iPhone? You have been hacked then?
If your iPhone already has the most recent version of iOS installed, update it from the Settings menu, then restart the device.
Go to Settings and clear your iPhone's browser history and data. Tap Clear History and Data after selecting the Safari option.
Unknown apps on your iPhone may be harmful; delete them by long-pressing the app icon and selecting Remove an app.
iCloud will let you restore your iPhone to its previous state. this eliminates all malware from your gadget
Antivirus For your iPhone, download a well-known antivirus and run a full scan to remove any harmful items.
goto option Then tap on general and scroll to the bottom to find the reset option. Delete all data and settings Click it, and you'll be given the option of Backup Then Erase, which you should do instead of Erase Now.
A factory reset is the last option if you can't uninstall spyware off your iPhone. The technique is similar to the previous one, with the exception that you will not be restoring from an iCloud backup.