and you are not pleased with the information supplied in Microsoft documentation at: picture sizing and scaling in SharePoint modern day pages ?
The important aspect is @ViewBag.Title. This little bit of razor syntax https://lilyncye337066.bloguerosa.com/29652760/a-secret-weapon-for-page-title-2024mcbnt