At least this should theoretically make it easier to block those horrible popup modals, if they're all grouped under one element:
dialog {display:none} dialog {display:none}[1] NoScript for Firefox (incl. mobile) & Chrome-based desktop browsers: https://noscript.net/getit/
[2] Kill Sticky bookmarklet for all browsers including mobile: https://github.com/t-mart/kill-sticky
Or, a Firefox extension that adds a toolbar button: https://addons.mozilla.org/en-US/firefox/addon/kill-sticky/
It kills every annoying modal and gives 100% of window height to content instead of annoying headers and footers.
Between Kill Sticky and an ad blocker, it basically feels like using the web as it was originally intended. For content.
(Also an extension to stop videos from auto playing, ever since that scourge started a few years ago.)