fix bug in mobile browserstack environments

- add a simple if condition to check if this is a mobile test
- only on desktop environments is a "max browser window" possible
Merge pull request #1 from robertbor/master

fix bug in mobile browserstack environments