Will I get an iPhone virus?

I was scrolling through answers on this and accidentally clicked on a link which took me to a random page (It didn't load in time for me to see what it was) and I got a pop up saying 'Congrats you're the new winner of an iPhone' or something along those lines and I didn't click on anything I just deleted the web browser page, will I get a virus from this? I'm really panicking about it so please help.

No you won't.

You won't get a virus, it was just a fake advertisement trying to scam people. Whenever you see anything like that, whether it be for an iPhone or a PS4, simply close the website and you're all good.

No…

Just spam.