It's not practical (or even possible, in most cases) to create a valid cookie notice on a WordPress website without using a cookie plugin. That's because a valid cookie notice needs to not only inform your visitors about cookies, but alow allow them to control which cookies they consent to.