You might not be aware of the ‘<picture>’ HTML tag that only sends the correct size img to the user based on their browser size.
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimed...
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimed...