# Custom CSS does not apply on mobile web GMAIL

**URL:** <https://community.hubspot.com/t/custom-css-does-not-apply-on-mobile-web-gmail/18117>\
**Category:** CMS Development\
**Created:** [January 15, 2020, 11:14am UTC](https://community.hubspot.com/t/custom-css-does-not-apply-on-mobile-web-gmail/18117 "2020-01-15T11:14:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vytas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/vytas/32/84083_2.png) [@vytas](https://community.hubspot.com/u/vytas)\
**Post date:** [January 15, 2020, 11:14am UTC](https://community.hubspot.com/t/custom-css-does-not-apply-on-mobile-web-gmail/18117/1 "2020-01-15T11:14:00Z")

</div>

Hi all,

custom CSS is not applied to testing email when I try to open on mobile web Gmail.

Do you think any specific reason?

Here is preview: [https://email.carts.guru/?hs\_preview=BDCUtvrP-24320579833](https://email.carts.guru/?hs_preview=BDCUtvrP-24320579833)

 ![Image from iOS.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/b/eb9ffed72dcb4efab8d785fc396dabbd10a1f137.png)

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [January 15, 2020, 1:58pm UTC](https://community.hubspot.com/t/custom-css-does-not-apply-on-mobile-web-gmail/18117/2 "2020-01-15T13:58:07Z")

</div>

@Hey @vytas

I’m guessing here, but the background image issue seems to be that the depreciated background attribute image is too large. This is because your image as you know is @2x. The background attribute doesn’t allow you to scale ([source)](https://litmus.com/blog/the-ultimate-guide-to-background-images-in-email) so now your image is twice the dimensions as Gmail wants it to be as, illustrated in the image below:

 ![Asset 7@2x-2-1-1-1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/7/87aae1a9373ba75e7703613f2b17a79d21c16542.png)

Now the text styling is an odd one because everything looks correct to me. This could possibly be caused by load speed, but seems rather unlikely. Might be worth combing through[these documents.](https://developers.google.com/gmail/design)

Edit:

[More on the background image size issue](https://stackoverflow.com/questions/20400762/gmail-removes-background-size-in-my-newsletter)
