Is there a way to check if iPhone is infected with virus?

I have been getting messages while surfing the web saying I win a reward and asking to press OK to proceed. I have always closed the tab, sometimes shut down safari completely. Today I got a new one about a virus and wanting to direct me to the Apple Store so I can buy a VPN app. I closed the tab. But would like to know if I can check if there is a virus on my iPhone. I would like to avoid the complete reset and rebuild routine which is very time consuming. Thanks

iPhone X, iOS 11.2.5
Has invited:

howapple - hello

Favor from:

You don't have to check. iPhones cannot get viruses unless jailbroken.

To reply to a question, please Login or registered