I have created a tutorial on how to add a custom cookie banner in Wix using Velo. I have used the Wix window frontend API with local storage to add this function. For the banner, I have used the lightbox, and a button is used to show/hide the banner.
Here is the full tutorial with the code - https://youtu.be/yWPY7_fYxrY
Feel free to add modifications to this code and share it with others in comments.
Best Regards