# Hide background image on mobile device

**URL:** <https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749>\
**Category:** CMS Development\
**Created:** [October 29, 2018, 4:12pm UTC](https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749 "2018-10-29T16:12:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StormieHaller](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stormiehaller/32/75413_2.png) [@StormieHaller](https://community.hubspot.com/u/StormieHaller)\
**Post date:** [October 29, 2018, 4:12pm UTC](https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749/1 "2018-10-29T16:12:27Z")

</div>

I am trying to hide the background graphic for the top section of this landing page for mobile devices:

> **[Able by Bullhorn | Bullhorn](https://www.bullhorn.com/products/able-by-bullhorn/)**
>
> Increase placements, cut downtime, and grow faster with Bullhorn's applicant tracking, candidate management, and CRM solutions for recruiting.

Can you help?

Thank you!

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 29, 2018, 9:30pm UTC](https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749/2 "2018-10-29T21:30:51Z")

</div>

Hi there!

A quick fix would be to click into the Settings for your page, scroll down to Advanced Options and paste mobile styling using media queries in the [Head HTML](https://knowledge.hubspot.com/articles/kcs_article/cos-general/how-can-i-add-code-snippets-to-the-head-and-footer-html-of-my-pages).

I think you’re referring to the background image, which would be this code (you can also add a colour instead of “none”):

```auto
<style>
 @media (max-width: 479px) {
 .marquee { background: none !important; }
 }
</style>

```

But you can also hide the computer image with this code:

```auto
<style>
 @media (max-width: 479px) {
 #hs_cos_wrapper_module_1540322396670198 {
 display: none !important;
 }
 }
</style>

```

I hope that helps!

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_

---

<div class="post-metadata">

**Author:** ![StormieHaller](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stormiehaller/32/75413_2.png) [@StormieHaller](https://community.hubspot.com/u/StormieHaller)\
**Post date:** [October 30, 2018, 1:50pm UTC](https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749/3 "2018-10-30T13:50:15Z")

</div>

Hello! I tried the following code to make the background blue instead of just removing the background all together, but it’s not working:

\<style\> @media (max-width: 479px) { .marquee {  
background-color: #0C2E4E;  
} } \</style\>

The ultimate plan is to include an image of the computer screen in the background image (so it’s really large on desktop) and remove the smaller image of the desktop altogether.

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [October 30, 2018, 3:08pm UTC](https://community.hubspot.com/t/hide-background-image-on-mobile-device/10749/4 "2018-10-30T15:08:33Z")

</div>

Hi [@7storms](https://community.hubspot.com/t5/user/viewprofilepage/user-id/7886)

Instead of “background-color” use “background” to replace the image, you’ll also want to add an “!important” to force the change, like this:

```auto
<style>
 @media (max-width: 479px) {
 .marquee {
 background: #0C2E4E !important;
 }
 }
</style>

```

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_
