Hide a DIV based on cookie session after closed by user

Hi all, I am trying to set a session-based cookie on a dismissable banner.

Once the user closes the banner, I would like to keep it hidden for the user until cookies have been refreshed or deleted. Can anyone help me with the custom script that is needed to make this happen?


Here is my site Read-Only: Webflow - Div Session

You might want to look at Window.sessionStorage - Web APIs | MDN

thanks @webdev! I’m not a developer though - do you have any thoughts or advice on how to employ something like this?