I am currently working on a nextjs app and I am wondering what the correct, production-ready method is for creating animations that act differently on different screen sizes. My go to method used to be 'window.innerWidth' for the js bits, but that doesn't appear to work with ssr. So what would be the optimal way to do this?