I am trying to pass "mobile emulation" with chrome options for my LambdaTest automation tests but I am getting LambdaError

I am trying to pass “mobile emulation” with chrome options for my LambdaTest automation tests but I am getting LambdaError. What could be the reason? I am passing below capabilities in JavaScript:

"goog:chromeOptions":{
             "mobileEmulation":{
                  "deviceName":"Galaxy Tab S4"
              }
           }

Hi Brett,

You need to pass the mobile emulation with chromeOptions like below:

"chromeOptions": {
          "mobileEmulation": {
            "deviceName": "Galaxy Tab S4"
          }
      }