Prepares the user agent information including the client side viewport info.