and you are not content with the information specified in Microsoft documentation at: picture sizing and scaling in SharePoint fashionable pages ?
The essential aspect is @ViewBag.Title. This little bit of razor https://barrypwic409430.tribunablog.com/an-unbiased-view-of-page-title-2024mcbnt-44751408