I have tried to look this up to see if anyone has done this before but have not been getting any results. Is there a way to make a html+css website that can switch its layout, looks, and overall performance usage based on a computers operating system or browser. For example, a user on Windows 11 can still enjoy the latest iteration of my website while someone on an older OS, while might not be able to run the site to its fullest potential, will have the option to run the website on a basic layout while not losing functionality. I know websites are possible of changing its layout based on if the user is on a smart-device or desktop.
I have tried to do research with w3schools.