Verify Text not working in Chrome (Headless)

Hi Guys can somebody please assist

I am doing a text verification on the menu bar at the top of a website

when I run the script and it opens the browser then the test runs fine - but when I run it in Chrome(Headless) then it fails

Caused by: com.kms.katalon.core.exception.StepFailedException: Actual text ‘’ and expected text ‘ICA’ of test object ‘Object Repository/Page_iCA Dashboard/Heading Menu Bar’ are NOT matched.

any Ideas?

Last week I had a similar issue with exactly the same error , my workaround :
WebUI.verifyElementAttributeValue(findTestObject(‘mytextobject’), ‘value’, myexpectedtext, timeout,FailureHandling.STOP_ON_FAILURE)