hide browser agent in Qubes-Whonix

How can I make sure my user-agent is not being shown

You should not. Would make you stand out more. Instead just use Tor Browser.

Why? See here:

If you still want to change the browser agent, it can be done as per:
Free Support for Whonix ™