Detect user screen size

@Mark
what is the best way to detect if a user is on mobile using the code column?
I’m trying navigator but sometimes is blocked. the tablet view is not perfect, and I would want to have the option to show elements if the user is on a desktop.
is there a chance that it would be a native indicator that we can set visibility depending on screen size?

i wonder if:

return (window.screen.height)

will work all the time in Glide App?

thanks.

I don’t know if there’s a way to do that. Code columns run in a sandboxed iframe. You’ll have to search around and experiment.

I guess, need to web view my apps and redirect…
what about my second question… is Glide going to have a native option to condition elements, depending on user screen size? @Mark

Possibly.