Zoom in and zoom out not working on dialect OSS

I am trying to implement zoom in and zoom out in my application. Now when I try to do it in my unit test it is working as expected. But when I try it in my integration test it gives an error. The only difference I can find in the two is that when the app is being launched in the unit test it works on dialect W3C and when I am working on the integration test it works on dialect OSS. Is there a way in which I can make sure that the app that I am launching in appium is getting launched always in dialect W3C. What defines on which dialect will my application launch?
I am implementing zoom in and zoom out from: