'tag-banner' class not being removed when navigating away

Working on a setup where I want to adjust the top padding of the main-outlet and saw there’s this declaration on the component:

.tag-banner #main-outlet {
  padding-top: 1.5em;
}

The component adds that class tag-banner to the body when navigating to a page with tag banners. But the class actually doesn’t get removed when navigating away. So the padding-top declaration stays in effect on all other pages.

I guess it’s a bug that the class doesn’t get removed. But I also wonder if it’s possible to drop the adjustment of the main-outlet and rather adjust spacing on some component element?