How to detect if the device is android mobile or tablet

I know how to detect if a device is iOS or Android, but how could we know if it’s a tablet or mobile?
I have the same doubt for iOS.

Maybe this can do something for you.

This is the search it came from.

Try SystemInfo.deviceModel.

I’m not aware of any function that will directly tell you if a device a tablet or mobile. SystemInfo.deviceType will only tell you if the device is a handheld or not.