How can I control a form don't allow execute in browser mode?

How can I control a form don't allow execute in browser mode?

I have a form with a field must be input by barcode scanning.  So this form only can execute in native mobile mode.
How can I control this form don't allow execute in browser mode?