Conditional card whether Companion App or browser?

Is it possible to know whether a dashboard is being served to the Companion App or to a browser? I’d like to set up conditional cards to display depending on which method is being used to view the dashboard.

Thanks