GUI test okat login headless

Hi everyone,
we are writing our GUI tests in webdriverio , we need to do okat login to our web.
when i run the tests locally everything woks and there is no problems. but when we run them in the remote ec2 ubuntu we have to run in headless mode. and this doesn’t work with okta. anyone know a way to make the login test to work in headless?
the error i get is about not finding the element / element not enable :
element (“input[id*=‘okta-signin-username’]”) still not enabled after 10000ms
anyone is able to do the login with headless set?

thanks in advnce for any help,