I am running automation code through selenium(latest version) / java(version-1.8.0_202") with Test NG . Browser : chrome (latest version) I am getting an issue like whenever I am running my test cases into local url / website runs on desktop version but same code I run through devops pipeline it takes the URL in other mode (for ex: tablet / ipad mini) as if it is not running in desktop mode.
How to restrict selenium code to run in virtual machine in desktop mode. (run in pipeline and it does not change the mode of the screen)