Yootheme Consent – Scroll block
/* When the consent banner is present, lock the viewport */ html:has(.tm-consent), body:has(.tm-consent) { overflow: hidden !important; height: 100% !important; position: fixed; /* Extra insurance to lock mobile scrolling */ width: 100%; } /* Your red overlay */ body:has(.tm-consent)::before {…Continue reading