You might not always know the exact viewport resolution when you want to create a custom device. Here are a couple of ways you can find it: