Used wordpress + bootstrap 4
There are 2 options for images, 1 for desktopa and 1 for mobile.
The template is adaptive. Inserts as html code into the page.
So the question is how to download only the desired image?
I manage the display in this way.
<div> <img class="m" src="URL" alt=""> <img class="d" src="URL" alt=""> </div> .m { display: none; } @media (max-width: 540px) { .d { display: none; } .m { display: block; } } Maybe I’m generally wrong approach to the implementation and there are more correct solutions. Maybe there is some kind of wordpress plugins or something in bootstrap.