Webflow sync, pageviews & more.
NEW

How can I maintain a fixed size of 600x600 for a video embed on mobile view using Webflow?

TL;DR
  • Wrap the video in a Div Block with 600x600px dimensions, set Overflow to Hidden, and give it a unique class.
  • Insert a custom Embed inside the Div with fixed width and height (600x600) and remove any responsive styles or attributes.
  • Ensure styles remain fixed at 600x600px in mobile breakpoints and avoid any % or responsive units in iframe or container styling.

To maintain a fixed video size of 600x600 pixels on mobile view in Webflow, you'll need to override the default responsive behavior for embeds.

1. Use a Div Wrapper to Contain the Video

  • Drag a Div Block into your layout.
  • Set its width and height to 600px in the Style panel.
  • Add a unique class name (e.g., fixed-video).
  • Set Overflow: Hidden to prevent any visual spillover.
  • Set Position: Relative if you plan to position the video inside absolutely.

2. Add the Video Embed Inside the Div

  • Drag an Embed element into the fixed-video Div.
  • Paste your video embed code (YouTube, Vimeo, etc.).
  • Many embeds are responsive by default using width="100%" and height="100%" or aspect ratio CSS—instead:
  • Set fixed values: width="600" and height="600" in the embed code directly.
  • Also, make sure to remove or adjust any style rules like style="max-width: 100%;".

3. Prevent Responsive Behavior on Mobile

  • Select the fixed-video class in mobile view (under the mobile breakpoint).
  • Make sure the width and height remain 600px.
  • Set Display: Block, Overflow: Hidden, and no max-width.
  • Avoid using % values, vw, or other responsive units for the embed iframe.

4. Disable Auto-Scaling From Webflow or Browsers

  • In the embed code, check for attributes like width="100%", style="max-width:100%", or CSS rules that can cause scaling—replace those with width="600" and height="600".
  • Add loading="lazy" to help load performance, if desired.

Summary

To fix a video at 600x600 on mobile in Webflow, wrap it in a Div Block with explicit pixel dimensions, use a custom Embed with fixed width/height set directly in the <iframe>, and make sure no responsive styling overrides are applied in smaller breakpoints.

Rate this answer

Other Webflow Questions