Unable to locate elements in headless mode

I have my functional tests that run fine on a physical device and on the emulator however, when I run the same tests on a cloud instance in headless mode I get the selenium no element found exception …
Does this ring a bell to anyone . I am using centos