Jump to content

How do I show a different hero video on mobile than on desktop and make sure it works on all devices?@Media works for some iphones but not others.

Recommended Posts

Below is my current code. The point of it is to show a different hero video on desktop vs. mobile. 

It's working well for many iPhones, except for some iPhone 11 and 12.


How do I make sure it will cover all devices?

@media screen and (max-width: 641px) {
section[data-section-id="65e0094f8b572f1293662a84"] {
 display:none !important;
  }
}
@media screen and (min-width: 641px) {
section[data-section-id="65de97151bee7e00c709eef9"] {
 display:none !important;
  }
}

Edited by michaelgsimpson
adding more info
Link to comment
  • Replies 5
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

If you are on the latest version of Squarespace the mobile breakpoint is 767px not 640px, try using that instead as I'm sure some iPhones can be run at higher screen resolution than 640px wide.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

I have no idea why that system isn't loading your video. Does it work on an IRL device?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

I'm not sure what your video is supposed to look like, but when I viewed the site on a real iPhone (with low power mode disabled, good battery life and high data rates) it looked like this:

image.thumb.gif.ed39c5ad51ca50d0bda06f285223237a.gif

About me: I'm Paul. A SQSP User for 18 yrs, I joined Circle when it launched in 2016 and have been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing expertise and extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with a Squarespace Domain

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.