Load images in different sizes for desktop and mobile

Is there a way to load the images depending on the device?
I would like to optimize my loading times for viewing on smartphones.

I have already read this article. But it is from 2018, maybe there is already a simpler solution.

Thank you for your help

Community Page
Last updated: