Pop up on iphone 6 screen that says iphone has a virus?

Hi, i was surfing the web on my iphone 6, then all of a sudden I clicked on something, it opened another window/tab and then a pop up read "
Your iphone has a virus" i then clicked OK, so it redirected me to a page that said, "you have 5 minutes to get rid of the virus or all of your data will be gone. Click to remove virus" so I just closed all my tabs and restarted my phone instead of clicking on it, because it seemed suspicious. Should I be worried that I will lose my data or my phone is being hacked? I'm kinda scared. What can i do? Or was it nothing to worry about?

I honestly wouldn't worry about it. This happened on my iPad before. Its usually some scam popup thing that tells you you have a virus. I closed all of the tabs and cleared my data for safari and nothing ever happened again like that.

Go ahead and remove that application. Its a fake message by third party application on every phone.

  • Virus on iPhone 4s? Pop ups? I know that it's basically impossible to get a virus, but everytime I open the Internet on y iPhone it redirects me to a page saying "claim the new iPhone 5 today, you are the 10000th viewer". I tried clearing my history, cookies, and data and it stil did it. How do I make it stop?
  • My laptop has a virus, can't even get to desktop? I would upload a picture but don't know how from an iphone 3. When i turn it on it goes to a bright red screen that says "The hardware on this computer has been deactivated. Warning: Attempting to bypass or reactivate this without the proper password may result in damage to this system and loss of data." I tried all passwords I use, none work. Any help appreciated
  • My iphone says i'm connected to Wi-Fi but when i try to run something it says i'm not connected? My phone shows signal, it has a check mark by the device but when i try to open an app it says can't find a connection.
  • My iphone 5 screen pop. How much would it cost for apple to repair it? My iphone5 is way past warranty date. I went to apple discussion and his guy said he got his fix for free. My phone is not crack or anything. It just pop a bit at the top. So much would it cost to repair it.