Serving different html for different useragents

Why don’t you give the new ssr feature a try

You can use it to parse the request object for the user agent and insert meta tags based on that information.