Looks like the issue may have been with the settings of the Siteground optimizer plugin.
In the plugin settings I excluded the age gate js and css files from minimising, combining and delayed execution and that seems to have fixed it.
This might be something you want to look into because Siteground host a lot of sites and the optimizer is activated by default.