How do you setup serial otg extension global instead of one specific screen?

When I build app I want serial communication for all screen. Now I define serialOTG extension for all single page. Then OTG connection loses sometimes. Can I define this serialOTG extension as globally, instead of each screens?

One way to workaround this is to use virtual screens (using arrangements and their visibility), and build your app on just one real screen.