Devices are categorized based on their viewport width as follows:
Mobile
Portrait (width <= height): width from 0px to 480px.
Landscape (width > height): width from 0px to 768px.
Tablet
Portrait (width <= height): from 481px to 1024px.
Landscape (width > height): from 769 to 1280px.
Desktop
Portrait (width <= height): 1025px and above.
Landscape (width > height): 1281px and above.
The categorization of device types relies on the page.display event.