Webflow sync, pageviews & more.
NEW

How can I create different layouts for mobile and desktop versions in Webflow? I have already created a layout for the mobile version, but when I hide it on the desktop, it also gets hidden on the mobile version. Webflow does not have an option to make it visible on desktop or mobile only.

TL;DR
  • Duplicate sections for desktop and mobile, assigning unique class names.
  • Use display: none to hide the desktop version on smaller breakpoints and the mobile version on larger breakpoints.
  • Leverage Flexbox or Grid to adjust layouts without excessive duplication.
  • Manage visibility settings in the Navigator and use display: none to control breakpoints properly.

Webflow allows you to create different layouts for mobile and desktop using visibility settings and display properties. However, hiding an element in one breakpoint applies to all smaller breakpoints as well. Below is a step-by-step guide to creating separate layouts for mobile and desktop.

1. Duplicate the Sections for Different Layouts

  • Create two versions of the layout: one for desktop and one for mobile.
  • Ensure each version has unique class names to avoid style conflicts.

2. Use Webflow's Display Settings to Hide Sections

  • Select the desktop version of your layout.
  • On smaller breakpoints (tablet, mobile), set display: none for this section in the Style Panel (under Layout > Display).
  • Select the mobile version, then on desktop and tablet breakpoints, set display: none.

3. Utilize Flexbox or Grid for Responsive Adaptation

  • Instead of duplicating entire sections, try using Flexbox or Grid with CSS overrides to adjust the design for each breakpoint.
  • This reduces duplicate content and improves performance.

4. Adjust Content Based on Breakpoints

  • Use the "Show/Hide" settings wisely in the Navigator panel to ensure only the correct layout appears at each breakpoint.
  • Webflow does not allow visibility toggling for specific breakpoints, so use display: none instead.

Summary

To create different layouts for mobile and desktop in Webflow: duplicate the sections, use "display: none" on inappropriate breakpoints, and leverage Flexbox/Grid for better adaptation. Since Webflow applies visibility changes across all smaller breakpoints, managing display: none per breakpoint is the key solution.

Rate this answer

Other Webflow Questions