I've had exactly the same problem this afternoon, tbh it's been driving me mad and my wife has voiced her great displeasure having briefly seen a dating website on the screen!....
Safari repeatedly closes down and App store opens, direct to that same advert.
I'm now on a PC without issues