how to get the browser user agent in unity webgl?

How can I get the browser user agent in unity webgl game?

thanks.

You can get the agent via non-Unity JS from your page and then pass that on to Unity.
See Unity - Manual: Interaction with browser scripting