@media only screen and (max-width: 981px) {
img.jet-logo__img {
content: url("http://yourwebsite.com/mobile_logo.png");
}
}
Then, it would work to update your logo.
However, ideally, you could use a <picture> element to achieve what you want with just HTML. Take a look at this example:
<picture>
<!-- When the screen is narrower than 981px, load small.jpg -->
<source srcset="path/to/small.jpg" media="(max-width: 981px)">
<!-- Default image for screens wider than 981px -->
<img src="path/to/large.jpg" alt="Descriptive text">
</picture>
HTML Structure: Instead of using a regular <img> tag, use the <picture> element. This element works with one or more <source> elements and an <img> element as a fallback.
CSS Media Queries: You define different srcset attributes for each <source> element, which are then activated based on media queries.
Thank you! now I managed to replace the image but if I attach an already resized logo it is loaded in full in the sense that it occupies the same space, result: I find myself the same size but with the logo obviously blurred because I am not viewing it with the original dimensions.