Creating H1 and H2 tags that aren't visible in UI?

For some pages, I want a custom H1 or H2 that’s a combination of elements.
For UI purposes I don’t want it visible or taking up space.
What is the best way to accomplish this while remaining SEO friendly? Is it even advisable?