For years, I've been hoping for more of the paged media specifications to come to browsers. In the next version of Chrome (131, now in beta) the ability to create your own header and footer content for printed content is here! Find out more in this post.
https://developer.chrome.com/blog/print-margins