"I want to clean out unwanted or unneeded issues in my iPhone and protect it from hackers"
-------
OK, so what issues are you having?
Avoiding Popups and Scam Messages:
Two Things to do...
A. Malwarebytes Mobile Security:
If you were to use Malwarebytes Mobile Security then that may do the job, somewhat. It blocks out suspected scams, based on the sender's phone number. The paid version lets you report a number - once reported, it blocks it out, not even allowing it to go through. Malwarebytes is created by longtime users of these forums, making it the only reliable Security Software for Apple devices. Go Here: Malwarebytes Mobile Security - App Store
B. Brave Bowser:
Try using the Brave Private Web Browser. It blocks out all sorts of junk. You can get it directly in the App Store: Brave Private Web Browser - App Store
C. Using the App Called Bouncer:
For text messages, there is an app called Bouncer, which block messages out by keywords. But, if these are not text messages, then is would not be an option. Here is the link: Bouncer: Text Messages Blocker 4+ - App Store