Is there a way around this? An example can be seen here.
I ran into this issue while attempting to create a mobile version of a page with different elements shown on desktop and mobile with the nodesktop
and nomobile
classes. I wanted to separate different sections with collapsed headers on mobile so that readers could expand whichever section they wanted to read, but found that the headers were not collapsible anymore.