Phone virus😒🤦🏽‍♀️

Not sure if this is the right group to add this in but I made the mistake of searching for porn on google. Usually I just look at gifs but I decided I was going to try some websites this time and next thing you know my safari freezes so I close out of it and go back on and then a random phone number pops up on my screen saying to ‘call’ or ‘cancel’. I click neither option and close out of safari. I go back and it’s glitching and being weird so I close out of it again. Then I go back on and close the tabs. For some reason one of the tabs said ‘contact apple’. Anyway I hope nothing happened to my phone, this is so annoying🙄😒. I try out websites because a lot of people say they use sites and don’t get viruses. I guess I’m just going to stick with gifs from now on lol. But I’m kinda freaking out😬 do you think I got a virus on my phone, if so what can I do about it.