overflow: hidden or fixed positioning that blocks scrolling..fs-cc-modal and re-enable body/html scroll when open.The Finsweet Cookie Consent modal is not scrollable on mobile, making it unusable for users who can’t access the full interface. This is a known issue with the modal’s overflow and scrolling behavior on smaller viewports.
overflow settings that block scrolling while the modal is open.overflow: hidden, preventing page or modal scrolling.
.fs-cc-modal, .fs-cc-container, and body elements.hidden.
You can inject a small custom CSS snippet via Page Settings → Custom Code → Inside <head> or in Site Settings:
<style>
.fs-cc-modal {
max-height: 100vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch; /* for iOS smooth scrolling */
}
html.fs-cc-modal-open,
body.fs-cc-modal-open {
overflow: auto !important; /* Restore scroll when modal is shown */
position: static !important;
}
</style>
.fs-cc-modal-open class if your setup uses a different class name when the modal is triggered.
If Finsweet’s library uses JS to prevent scrolling (e.g., adding overflow:hidden on <body> when modal opens), you may need to override this via code:
<script>
document.addEventListener('DOMContentLoaded', function() {
const observer = new MutationObserver(() => {
document.body.style.overflow = 'auto';
});
observer.observe(document.body, { attributes: true, attributeFilter: ['style', 'class'] });
});
</script>
overflow if modified. Use with caution—only if CSS changes are insufficient.
height or overflow: hidden.
To fix the Finsweet Cookie Consent modal’s mobile scroll issue, add CSS to enable overflow on the modal, restore scrolling on body/html, and use JavaScript if needed to override scroll locking behaviors. Test after publishing to confirm the fix.