On ublock origin (full version, not lite), click on the settings icon:

Then go to “Filter Lists” and enable both of the “Cookie Notices” options:

On ublock origin (full version, not lite), click on the settings icon:

Then go to “Filter Lists” and enable both of the “Cookie Notices” options:

Hiding elements with zapper is only temporary, so you should use the normal element picker instead.
But with uBO you can also do much more than just element hiding:
https://github.com/gorhill/uBlock/wiki/Static-filter-syntax
https://github.com/gorhill/uBlock/wiki/Resources-Library