Hello, @OketchOdanga
There is a tag that offers alternative versions of the same image for different displays. It's called the 'picture' tag.
Here is the example Picture tag in mdn.
I hope it helps
Marked as helpful
@OketchOdanga
Posted
@AlfredoPegueroC Thanks for your feedback. I have read the article and will try to implement it in my future projects.
I have a question. Is it better to user background property in css for the image if the desktop and mobile layout are different? As in this case?