Accidentally clicked suspicious ad on Safari
I was on the internet browsing, when I clicked I link that I thought would take me to the page I wanted, but instead it opened up a new tab and there was a NSFW ad. I didn't click anything on that page, rather closed the tab and cleared my history and cookies. Is there a virus on my phone? Or a trojan? Or is there any way for me to check?
iPhone 6, iOS 8.2