Remove the title banner from SharePoint modern page
The title banner in the modern pages of SharePoint takes a lot of space.

Even if you try to switch to “Plain” title layout, the title area still will take some space.

To completely remove the space, you can run the following PnP PowerShell command with the ID of the page.
For more about PnP PowerShell, visit this link.
Set-PnPListItem -List SitePages –Identity <id> -Values @{"PageLayoutType"="Home"}
First connect to the site using the following command
Connect-PnPOnline https://tenant.sharepoint.com/sites/site-where-the-page-exists
Then find out the ID of the page using the following command. This command assumes that the page is located within “SitePage” library.
Get-PnPListItem -List SitePages
Finally set the page’s layout type to “Home” by running the following command.
Set-PnPListItem -List SitePages –Identity <id> -Values @{"PageLayoutType"="Home"}
Now the title area is totally gone.
