So here you get the guide on how to remove the malware from iphone.
First restart your device
Then remove the apps those are not used or downloaded from other app stores
Don't allow the permissions from all apps until it necessary
Then clear the cache and cookies
Update your device uptodate
Remember to install the malwares security softwares.