Should I be worried that my iPhone has been compromised?

After browsing the web for about half an hour or so I get a pop up saying that someone is trying to access my iPhone and that I should get rid of all the viruses. It states the persons ip and the location which is the Ukraine. Is this some sort of scam because I've heard that iPhones can't get malware because you're not allowed to download anything from the web. So my question is should I be worried.

I don't know but smart phones are the hackers new target. I would be a little concerned.

Any such pop up in a browser is a scam.

https://www.apple.com/..._Guide.pdf

Iphones are able to still get malware, it is just very unlikely. That being said, you just saw someone trying to scare you in to clicking on something

It's a scam… Walk away… Do not click on anything that they say you must click on.exit what ever site you are on…