If a container is disappearing only on iPhones using Safari or Chrome, it's likely due to mobile-specific styling issues, overflow settings, or Safari rendering quirks. Here's how to troubleshoot and fix this in Webflow:
1. Check Visibility Settings for Mobile Devices
- Go to the Navigator and select the container that’s disappearing.
- In the Style panel, check the Display property when in mobile breakpoints (Tablet, Mobile Landscape, and Mobile Portrait).
- Make sure it’s not set to Display: None on these breakpoints.
2. Inspect Overflow and Position Settings
- A container with overflow: hidden or position: absolute without a defined height/width or parent constraints can vanish on mobile.
- Ensure the container or its parent has:
- A defined height or content inside to force height
- Overflow: visible if child elements extend beyond it
- On iPhones, especially Safari, improper use of position: fixed or absolute can behave differently than on desktop.
- Go to the Interactions panel and disable all page or scroll-based interactions affecting the vanishing container.
- Check if opacity: 0 or display: none is being set via animations or triggers on smaller breakpoints.
- In the Styles panel, remove any custom Transform settings (e.g.,
translateX(-100%)
) that might push the container off-screen.
4. Check Z-Index
- The container may be behind other elements on smaller viewports.
- Give the container a higher z-index (e.g., z-index: 10) to test whether it’s being layered correctly.
- Also ensure no parent or sibling elements are using z-index to unintentionally hide the container.
5. Test Safe Widths and Heights
- Safari on iPhones doesn't always handle 100vw/100vh as expected.
- Instead of 100vh, try using 100% height with constraints based on a parent.
- Avoid using exact pixel widths that exceed device resolutions (e.g., fixed widths over 375px).
6. Review Custom Code or Embed HTML
- If using any custom code or third-party embeds, disable them temporarily to rule out conflicts.
- Badly formatted code or missing viewport meta tags can cause mobile layout issues.
7. Preview on Devices via Webflow and Real iPhones
- Use Webflow’s preview in mobile mode, but also test on actual iPhone devices using Safari and Chrome to confirm behavior.
- Use browser developer tools (like Safari’s DevTools) to emulate iPhone conditions more accurately.
Summary
To fix a disappearing container on iPhones in Safari or Chrome, check for hidden display settings, problematic overflow or positioning, mobile-specific interactions, and z-index layer conflicts. Always test across actual devices to confirm the fix.