Popups not displayed properly for screen widths 768px - 959px
Hello,
We've run into an issue with BeBuilder popups not displaying properly for screen widths 768px - 959px.
Wondering if it's possible to integrate a fix into Betheme? Here's Google Gemini's reply:
AI Overview
A centered Betheme (BeBuilder) popup gets pushed off-screen at 768px because 768px is Betheme's exact tablet/mobile breakpoint, where a desktop-sized fixed width or vertical height exceeds the viewport while remaining anchored to the center.
Common Causes & Fixes
1. Width Exceeds 768px (Horizontal Cut-off)
• Cause. In BeBuilder’s Popup Options, the Custom Width is set to a desktop pixel value (e.g., 800px or 900px) without a responsive override for tablet/mobile views.
• Fix in BeBuilder. Open the popup in BeBuilder, go to Popup Options > Design, switch the top preview bar to Tablet (768px), and change the width to a percentage like 90% or 95% (or a smaller pixel value like 680px).
• Fix via CSS. If the builder setting isn't applying cleanly at the exact 768px edge, force a max-width in Theme Options > Custom CSS:css
@media only screen and (max-width: 768px) {
.mfn-popup-tmpl .mfn-popup-tmpl-content {
max-width: 92vw !important;
width: 100% !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
}
Use code with caution.
2. Content Is Taller Than the Viewport (Top/Bottom Cut-off)
• Cause. Centered popups use position: fixed and vertical centering (top: 50% + translateY(-50%)). If the popup content is taller than the screen height (common in landscape tablet mode or on short viewports), the top and bottom edges get pushed off-screen and cannot be scrolled.
• Fix via CSS. Constrain the popup height and enable internal scrolling at 768px and below:css
@media only screen and (max-width: 768px) {
.mfn-popup-tmpl .mfn-popup-tmpl-content {
max-height: 90vh !important;
overflow-y: auto !important;
}
}
...
Thank you for your help.
While waiting for a response from one of our team members, we recommend to check Support Center where it is highly likely that you will find the answer to your question in no time.
FAQ | Video Tutorials | How to