I believe what you may be after is actually session.interactionMode
I think itβs worth if you go through XRSession - Web APIs | MDN and check what it has to offer typically you get the info regarding device mode there
You almost never want to check for a specific browser or device