What I use is
@media (pointer: coarse) and (hover: none) {
If you have a mouse plugged in, you get the desktop design.
@media (min-aspect-ratio: 1/1) /* wide */
@media (max-aspect-ratio: 1/1) /* tall */
@media (aspect-ratio: 1/1) /* square */
Here, play with your window width to see: https://hypertele.fi/0000000000000000