Hi Tom,
You can use the variable $currentDeviceType in a microflow. More information can be found here: https://docs.mendix.com/refguide7/navigation
Good luck.
Kind regards,
Jeffrey