If we're just talking about image based ads it would be easier to simply denylist every image on a page and only render alt-text until the user clicks to reveal it.
Worth noting though that Apple injects ads into the News app, which is just a webview, so it's certainly not them that will do this.
I wonder what percentage of images even has meaningful alt-text.
You're trying to stop ads because they're malicious but you think they'd be honest with their alt text?
Ignoring that users care deeply about images so a browser that did this would be considered broken from the get go.