One way to target specific browsers like Internet Explorer is by using conditional comments. However, this method may not be effective in all browsers including the latest version of IE.
Instead of relying on browser detection, consider using feature detection as a more reliable approach. By detecting specific features, you can create a more flexible and future-proof design.
If you need to style your website differently based on the user's device, you can use Javascript to detect mobile devices like Apple or Android. This can be achieved using libraries like isMobile and adding the necessary CSS classes dynamically.