I usually benefit from the wise advice of the members of the great family of this forum, and today I would like to give a little advice or contribution to this great forum.
I know that the cookie issue is a bit of a headache, especially in Europe. That's why I leave here an easy and free way to do it in any of our websites.
Here you can find a free website that guide us with the process to Build our Cookie Consent banner, and it works in almost all lenguages

Finally, when you have the code, you need to put it "after <body> tag".
(there are many ways to do it, but I like this easy one: Site HTML (applies to all pages) -> "after <body> tag"

Enyoy it

M.