If an entire UI (content plus ads) is drawn with wasm onto a canvas (the way Qt WebAssembly does it), it will be impossible to use CSS to hide ads, and possibly more difficult to modify the script to disable the ad-loading functions.
Sounds like the pages made in Flash (or even Java) which were somewhat common in the 90s.
Uh, but those things are already happening right now, e.g. Flutter Web UI [1]
[1] https://hugotunius.se/2020/10/31/flutter-web-a-fractal-of-ba...