Browser sends the User-Agent you ask for
Set userAgent on a Browser request and that exact string goes out on the header, in the page and in its workers. The client hints travel with it, so sec-ch-ua, the platform and navigator.platform all agree with what you asked for. The response reports back the same string.