I disagree. There are many things that can cause this behaviour: Profiles, proxy setting, search engine setting, or some content blockers which can behave in that way.
Recently I have seen a "content blocker" which works only on WiFi. And guess what, it simply sets a PAC file to the wifi connection! the PAC file was somewhere on a remote server. Just imagine, what if the owner of the PAC file just writes a simple redirection to an annoying ad-page?
iPhone is almost bulletproff and I agree this is not a virus. this is just a user issue, who clicks (not necessarily aware) on the wrong button or installs wrong app.
pasting what I wrote in Re: Virus on iPhone 6s?!
1. you get it only when doing a search? if yes, look on the Settings > Safari > Search Engine - see if it's set to google
2. second thing I would look at is Profiles. Settings > Profiles and delete any suspicious profiles. if you are not using a company phone, you can delete all profiles which are there. if the Profiles is not shown, ignore this step, you have no profiles set
3. third thing can happen on Wifi - look at wifi settings, if there's a proxy server set. if yes, set it to None
4. fourth try, look if you have any extensions (in iOS content blockers only) installed. if yes, try to remove them.
I'm pretty curious if this helps