Custom pseudo section link

I am taking a piece of code from one of my custom sites. It triggers the opening of a popup:

<a href="#" id="open_preferences_center">Change your preferences</a>

I have not been able to figure out how to do this in Webflow and would appreciate some guidance. This is what I end up with when I want to set this with webflow’s link feature.

Cookie management