I just turn on Reading Mode when that happens so I can at least read the content. I find that most websites don’t have circumventions for it (at least the Safari Reader Mode on my phone).
Obviously the AI that wrote the ad code has become sentient and it is trying to break free.