Latest SeedProd News

WordPress Tutorials, Tips, and Resources to Help Grow Your Business

how to hide image in mobile view WordPress

How to Hide Images in Mobile View on WordPress 

Written By: author avatar Stacey Corrin
author avatar Stacey Corrin
Stacey has been writing about WordPress and digital marketing for over 10 years and on other topics for much longer. Alongside this, she's fascinated with web design, user experience, and SEO.
     Reviewed By: reviewer avatar Turner John
reviewer avatar Turner John
John Turner is the co-founder of SeedProd. He has over 20+ years of business and development experience and his plugins have been downloaded over 25 million times.

Big desktop images can break your mobile layout. They slow down load times, push content too far down, and make your site feel cluttered on small screens. The fix is simple: hide images on mobile so visitors see only what matters.

In this guide, I’ll show you three easy ways to hide images in mobile view on WordPress, including a no-code option and a quick CSS method.

Why Hide Image in Mobile on WordPress?

Hiding images in mobile view keeps your site clean and easy to use. A giant hero photo or promo banner that looks great on desktop can overwhelm small screens, slow down load times, and push important content out of view. In some cases, you may also want to run desktop-only offers without confusing phone visitors.

The bottom line: hiding images on mobile gives users a faster, clearer experience.

How to Show and Hide Image in Mobile View on WordPress

The solutions for hiding images on mobile screens may seem complex for users unfamiliar with coding languages. A quick Google search reveals instructions for writing custom CSS, div classes, and all manner of technical jargon.

Don’t worry. You won’t need any technical expertise for the methods we cover below. All you need is a WordPress plugin, a WordPress website, and the ability to follow some easy steps.

Method 1: Hide Image in Mobile View on Website

We’ll use a powerful WordPress plugin to hide images in mobile view for the first method.

SeedProd Drag-and-drop WordPress website builder

SeedProd is the best website builder for WordPress. It lets you create WordPress themes, landing pages, and responsive layouts without writing code.

It includes hundreds of premade templates, and you can customize every inch of your website with the visual drag-and-drop page builder, blocks, and sections. You can also use Device Visibility settings to hide specific content on mobile and desktop views.

SeedProd also offers built-in modes, such as coming soon, maintenance mode, 404 page, and login page. You can turn each mode on and off with one click, allowing you to hide your website from the public while working on its design.

Follow the steps below to hide images in mobile view on your WordPress website.

Step 1. Install and Activate SeedProd

First, click the button below to get your copy of SeedProd.

Note: To use SeedProd’s website builder feature, you need a SeedProd Pro license.

After downloading the plugin, install and activate it on your WordPress site. You can follow this guide on installing a WordPress plugin if you need help.

Next, go to SeedProd » Settings and enter your license key.

enter your license key

You can find your key in your SeedProd account dashboard under the ‘Downloads’ section.

Find your SeedProd license key

Click the Verify Key button to unlock your SeedProd license, then move on to the next step.

Step 2. Choose a Website Template

The next step involves creating a custom WordPress theme. That will allow you to use SeedProd’s ‘Device Visibility’ settings to show and hide different content on desktop and mobile.

Go to SeedProd » Theme Builder and click the Themes button to choose a website template.

add a theme template

Many themes are available for various industries and website types, including eCommerce, blogs, portfolios, etc. 

Once you find a theme you like, hover over it and click the checkmark icon to import it to your site.

Choose a WordPress website template

You’ll now see the different parts that make up your WordPress theme.

WordPress theme files

Typically, you’d need to customize these manually with code, but with SeedProd, you can visually edit each part of your website with the drag-and-drop page builder.

To customize any part of your website, hover over a theme template and click the ‘Edit Design’ design link. For this guide, we’re starting with the homepage.

edit homepage design

Step 3. Customize Your Website Design

You’ll see SeedProd’s visual page editor when you open a theme template. It has blocks and sections on the left for adding custom content and a live preview on the right.

SeedProd visual page editor

You can click any element to see its settings and change the design and layout. For example, the headline element allows you to edit the content, alignment, heading level, etc.

Customize website headline

It’s also easy to add new elements to your design. Simply drag a block from the left and drop it onto your live preview.

Add a countdown timer block

We used the ‘Countdown’ block in this example. Countdown timers are an excellent way to add urgency to your site and encourage visitors to act before missing out.

Customize coundown timer content settings

Like all SeedProd blocks, you can click it to:

  • Change the timer type
  • Adjust the timer alignment
  • Add a custom message
  • Redirect users when the timer ends
  • Change the timer size

You can also click the ‘Templates’ tab to choose a different style quickly.

Choose a countdown timer template

Step 4. Hide Website Images on Mobile with Device Visibility

Hiding images in mobile view is easy with SeedProd’s ‘Device Visibility’ settings. You can hide images individually or entire image sections with a single click.

To hide images individually, find the image you wish to hide, then click on it to open the content settings.

Open image content settings

Next, click the ‘Advanced’ tab, and expand the ‘Device Visibility’ section.

Open device visibility settings in the Advanced tab

To hide the image on mobile, click the toggle next to the ‘Hide on Mobile’ heading.

Turn on hide on mobile toggle

That image will now only display to desktop visitors and is hidden on mobile.

You can follow the same steps to hide entire image rows with SeedProd. Simply open the row’s settings, and in the ‘Advanced’ Tab, use the ‘Device Visibility’ settings to hide the image row on mobile.

section: hide image in mobile view

You can preview your changes by clicking the ‘Mobile Preview’ icon in the bottom toolbar.

Preview on mobile

Any ‘greyed out’ images won’t be visible to mobile website visitors.

Images hidden on mobile view

When you’re happy with how your design looks, click the Save button in the top-right corner of your screen.

Save your customizations

Follow the steps above to hide images in mobile view for any other theme template, such as your Sidebar, Single Posts, Pages, etc.

For example, if you want to hide your blog post featured images on mobile, you can edit your Single Post template and change the visibility settings on the Featured Image block like this:

Hide a featured image in WordPress on mobile

Step 5. Publish Your WordPress Website

When you’re ready to make your custom theme live, go to SeedProd » Theme Builder and turn the ‘Enable SeedProd Theme’ toggle to the ‘On’ position.

enable seedprod theme

Now you can preview your website to view the changes. As you can see from this example, the images we chose earlier are hidden on mobile.

hide image in mobile view on website

Method 2: Hide Images in Mobile View on Landing Pages

You don’t have to rebuild your theme to hide images on mobile. With SeedProd’s landing page builder, you can apply the same Device Visibility settings to any standalone page.

This is perfect for sales funnels, webinar signups, or promo pages where you want a clean mobile view without touching your entire site design.

Just create a new landing page in SeedProd » Landing Pages, pick a template, and open it in the visual editor.

Add a new landing page in WordPress

Then, select the image you want to hide, go to Advanced → Device Visibility, and toggle Hide on Mobile.

image in mobile hidden

Preview on your phone, publish the page, and you’re done.

landing page image hide in mobile view

Method 3: Hide an Image on Mobile with CSS

I understand that some website owners prefer to customize their sites manually. For that reason, the following method will show you how to hide images on mobile using custom CSS.

Note: I only recommend this method if you’re comfortable working with coding languages. You can use the built-in WordPress customizer to add custom CSS to your website.

First, find the class of the content element that contains your image. For example, your blog posts’ featured image. You can then hide it by using the following CSS class:

@media only screen and (max-width : 320px) {
.your-element-class {
display: none;
}
}

You’ll need to replace the ‘your-element-class’ with the CSS class that contains your image. You may also need to adjust the max device width to suit your WordPress theme and media query.

In this example, we hid the post featured image on mobile by targeting the ‘.featured-media img class’:

@media only screen and (max-width: 782px) {
.featured-media img{
display: none;
}
}

As you can see, the image disappears automatically on smaller screen sizes.

Hide image in mobile view custom css example

FAQs on Hiding Images in Mobile View

What’s the easiest way to hide an image on mobile in WordPress?
Use a visual builder with device visibility. In SeedProd, select the image, open Advanced, and toggle Hide on Mobile.
Can I hide a whole section on mobile instead of a single image?
Yes. Open the row or section settings and use Device Visibility to hide the entire block on mobile.
Will hiding images on mobile hurt SEO?
No, as long as the hidden image isn’t the only place users can get critical content. Keep important info as text that remains visible.
Can I swap images by device instead of just hiding them?
Yes. Create two images. Set one to Desktop only and the other to Mobile only using Device Visibility.

I hope this article helped you learn how to hide images in mobile view on WordPress. You might also like the following guides:

Thanks for reading! We’d love to hear your thoughts, so please feel free to leave a comment with any questions and feedback.

You can also follow us on YouTubeX (formerly Twitter), and Facebook for more helpful content to grow your business.

author avatar
Stacey Corrin Writer
Stacey has been writing about WordPress and digital marketing for over 10 years and on other topics for much longer. Alongside this, she's fascinated with web design, user experience, and SEO.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. We only recommend products that we believe will add value to our readers.