Try to set resolution to 2K on supported devices
This version uses a CSS media query to apply scaling only on devices that have a minimum width of 2560 pixels, which is more in line with responsive design principles. Also, it uses DOMContentLoaded to run the script earlier in the page load process