I want to identify the type of the mobile device, whether it is foldable , flip or normal device
You could use some media queries here to help
These queries plus some matchMedia
calls to detect from JS could be a way forward.
Thanks for the reply.
I tried with the above solution, which you gave but seems like the browser doesn’t recognize the CSS query.
Following is the way I tried,
let single_vertical = window.matchMedia('(screen-spanning: single-fold-vertical)');
let single_horizontal = window.matchMedia('(screen-spanning: single-fold-horizontal)');
this is result I got , please help me if I have do something else.