I tested this on MW 1.35.1 with the 48f795d version of CookieWarning (the latest in REL1_35 branch).
The HTML for CookieWarning appears inside the sitenotice, which then causes the sitenotice to appear even when there's no actual notice to be shown. This creates a confusing [dismiss] link at the top right of the page which hides both the sitenotice (if present at all) and the CookieWarning. That is really confusing to site admins and users.
One can see this bug also on Miraheze, e.g. here: https://meta.miraheze.org/
Related task: T254302: Update CookieWarning so it doesn't use the SkinTemplateOutputPageBeforeExec hook