I went on some movie streaming websites and this this popular came up

The popup wouldn t let me go on any other websites so I went into my settings and cleared my cookie and data history. Now I go on to safari and the popup is gone, but is the virus? The popup said to call a number as hackers can view my credit card info or my photos and Facebook, but is this message true, or was it from thr hackers to try and get me to pay money?

Also, although the message is gone, would restoring my iPhone to factory settings be advisable or would the virus still be there?

Its fake chill out haha just ignore it and scan your computer AFTER youre done watching tv and never click those links. If you need help navigating those site to avoid the wrong clicks just comment and ill comment back, i'm not doing anything tonight anyway haha

It is an obvious scam. Just don't click it and move on

Nothing infected your phone. It was just a scareware ad. You did everything that you need to. Clearing browser data and cache fixes that problem.