I have found and used some code which will return a variable true based on the device size and rotation. However these variables do not update when the device is rotated, an