Styles removed from code | WordPress.org

Hi,

I am following this Google guidance for adding some extra CSS for mobile devices https://support.google.com/adsense/answer/9183363?hl=en#zippy=%2Cexpandable-width-with-fixed-height-example

So according to the guidance, I added this code through the plugin

<style>
@media(max-width: 480px){.resp-ad{max-width: 414px;}}
@media(max-width: 414px){.resp-ad{max-width: 348px;}}
@media(max-width: 375px){.resp-ad{max-width: 329px;}}
@media(max-width: 360px){.resp-ad{max-width: 314px;}} 
</style>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- XXXXXXXX -->
<ins class="adsbygoogle .resp-ad"
     style="display:block"
     data-ad-client="xxxxxxxxxxxxxx"
     data-ad-slot="xxxxxxxxxxxxx"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     
</script

The class is added to the ads but the style definitions are not applied, I don’t see them anywhere in the frontend. How can I make this work?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer