Jump to content

How to hide images only on Mobile view

Recommended Posts

3 minutes ago, Estelle2022 said:

Hi everyone, I would like to know what is the code to hide an image on mobile view and keep it visible on my desktop?

I need to apply this to few of my images on diverse pages, could someone help me with a step by step guide and provide the right code?


Thank you, 



Here is the code. And see the video to apply the code.


@media screen and (max-width: 768px) {
  .fe-block-ad355db8f5eccf8c991b, .fe-block-yui_3_17_2_1_1697118299371_1707 {
    display: none !important;


If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


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.