Does anyone know if it's possible to create an expandable/collapsible section in a popup in Map Viewer? In my popup I have a 'facilities' section which I would like to display as hidden when the popup loads, but give the option to the user to expand the section if they wish.
My popup currently looks like this:

But what I'd like is for the Facilities selection to load collapsed with an option/button the user can click to expand, something like this:

I can add style='display:none;' to the relevant <div> in my popup but I can't figure out how to make it visible again. I think I need to use some JavaScript, but that seems to get stripped from the popup (presumably a security risk?).
Any help would be greatly appreciated.