Hi @a_hulshof ,
Trigger below code on click of UI element. Profile variables will be stored in the profile. So, you can use the profile variable, to hide the content across the sessions.
https://docs.adobe.com/content/help/en/target/using/implement-target/client-side/functions-overview/...
adobe.target.trackEvent({
"mbox": "clicked-cta",
"params": {
"profile.param1": "true"
}
});
Create an Audience to show content when "profile.param1" value is not set.