Portals and level of headings

I often see a need to create a portal with significant portion of some document but the desired level of headings is different in two documents. Is there some solution of this?

Here’s an example where it make sense to share a section called “Invasion of Poland” in two documents (“World War II” and “History of Poland”) but the level of headings does not match.

World War II (document)

  • Invasion of Poland (h1)

History of Poland (document)

  • Events (h1)
    • World War II (h2)
      • Invasion of Poland (portal) - would like h3 but it’s h1

The heading size is the property of the rem itself, whether it’s in its original location or accessed through a portal. There was a relative headings Custom CSS snippet a while back, but I’m not sure it was updated to work with the latest RemNote version.