No, the problem doesn't stem from the header.tpl file itself, but most likely from the incorrect integration of the Google Tag Manager (GTM) code—specifically the <noscript> section.
What you're describing (the GTM ID visible on a white background at the top of the site) almost always occurs when the GTM code is misplaced or misinterpreted by the theme.
Edit History
No, the problem doesn't stem from the header.tpl file itself, but most likely from the incorrect integration of the Google Tag Manager (GTM) code—specifically the <noscript> section.
What you're describing (the GTM ID visible on a white background at the top of the site) almost always occurs when the GTM code is misplaced or misinterpreted by the theme.
.png.022b5452a8f28f552bc9430097a16da2.png)