Printed Commit Pages Missing Heading
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=578190)
</details>
<!--IssueSummary end-->
### Summary
When a commit page is printed in the web browser, the page heading is missing.
Previous versions of GitLab would correctly show commit messages as headers in printed output.
### Steps to reproduce
Browse to a commit
Use browser print function.
Reproduced in Chrome and Firefox.
### Example Project
<!--If possible, please create an example project here on GitLab.com that exhibits the problematic
behavior, and link to it here in the bug report. If you are using an older version of GitLab, this
will also determine whether the bug is fixed in a more recent version.-->
### What is the current _bug_ behavior?
Printout missing heading.
### What is the expected _correct_ behavior?
Printout showing heading present in normal webpage view.
### Relevant logs and/or screenshots
For, example, [this commit page ](https://gitlab.com/gitlab-org/gitlab/-/commit/b0396519ac9f5f5e3577c4e400c44360ccde6610)prints as follows, missing the commit message as a heading:

### Output of checks
This bug happens on GitLab.com
issue