Goal: make the homepage video full width on mobile while keeping a normal (non-full-width) size on desktop in the Dawn theme.
Key steps implemented:
Added CSS in assets/base.css with a desktop media query (min-width: 768px) to constrain the video section’s width (max-width: 900px) and center it, preventing desktop cropping and oversized display. Padding was also adjusted on desktop.
Added a mobile-only media query (max-width: 768px) to remove padding so the video spans full width on phones.
Follow-up adjustment:
After the mobile change, the text beneath the video was too close on mobile. A margin-bottom: 30px was added within the mobile media query to restore spacing below the video.
Outcome:
Mobile: video displays full width with proper spacing beneath.
Desktop: video displays at a constrained, centered width (not full width), addressing the original cropping/oversize concern.
Notes:
Changes were done via CSS media queries in base.css targeting the specific video section. The issue appears resolved with no open questions.
I want to make my video on my website full width on mobile but regular size on desktop. The desktop version is so big that part of the video is cut off on the screen. Please provide a code to solve this issue.