This has been discussed before, but there really wasn't any solution.
https://community.roku.com/t5/Roku-Developer-Program/Identify-device-from-User-Agent/td-p/549164
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.