@md5dalton
Posted
Hello ssembatya-dennis 👋
If you want to implement responsive images in your app, picture
HTML element is the best choice to go with. You can use it load appropriate images depending on the device screen size. Here's how you can use it in your app:
<picture>
<source srcset="/images/image-product-desktop.jpg" media="(min-width: 576px)" />
<img src="/images/image-product-mobile.jpg" alt="transparent perfume bottle" />
</picture>
I hope that helps. 👌
Marked as helpful