It is not possible to scan for viruses in iOS, as there is no virus scanner available, either built into iOS or as a 3rd party app in the App Store. iOS cannot get viruses. Every app you have on your iPhone can only work in its own closed area. This means that NO 3rd party apps have access to important and vulnerable files or areas in iOS.
How can I do a virus scan on my iPhone? - Apple Community
No, there is no virus scanner, for the same reason that you do not have a virus. No app can scan the contents of your phone or embed files in the System. With that said, there companies that will make a claim that they can scan your iPhone and will certainly take your money, but those are scams as well.
How to scan documents on your iPhone or iPad - Apple Support Glad to see they do have an updated doc out there, it's just not the first that comes up. Even going to apple support and searching 'how to scan document on iPhone' the first relevant response is a link to the older version.
Is there an absolutely free virus removal app, virus scan app, or a virus protection app I can use for my iPhone 12? What little malware is around is very rare and targeted, based in available information.
I can scan from my iPad through the Photos app if I use the continuity camera option form my Mac though. Continuity Camera: use your iPhone or iPad to scan documents or take a picture on your Mac – Apple Support