While constructing a website, I encountered an issue where the client is using a mobile device and I want to prevent them from loading a particular background image. For larger screens, my plan is to incorporate approximately 5 images with different resolutions based on the device width. However, I have been unable to find a way to implement this in CSS.
Currently, I am utilizing a regular high-resolution image, but this is not ideal as it loads on mobile devices and may not be optimized for various desktop sizes.
max-width: 2560px;
background-image: url("../img/test_image_2.jpg");
background-repeat: no-repeat;
background-attachment: fixed;