The userAgent of Chrome and Edge, both contains a 'Mobile' word on android phone. And don't contains it on android pad.
But the Firefox userAgent on phone is exactly alike it on pad.
So, is there any accurate way to detect the android device type for Firefox?
I think the only way to do that is detect with size of device because tablets are basically bigger then phones
hope something like this could help :