and you are not content with the information specified in Microsoft documentation at: Image sizing and scaling in SharePoint present day pages ?
The essential portion is @ViewBag.Title. This bit of razor syntax https://zoyamrhj320917.bloguetechno.com/the-fact-about-page-title-2024mcbnt-that-no-one-is-suggesting-65699939