Hi,
you mean for getting the physical size?
That's unfortunately not possible, no today system or browser provides these information.
That best thing that could be done is using the user-agent of a mobile-device and looking it up on a device-database that contains the physical screen size.
krpano is doing something similar for the MobileVR/Cardboard support, because for the correct VR display and lens-distortion knowing the correct physical screensize is necessary:
https://krpano.com/plugins/webvr/#mobilevr_database_url
Best regards,
Klaus