To hide the Sign in with an external account section from the Sign In and Register page of the portal.
Set the following site settings value to false à
Followed by Restart of the portal.
Go to Portals à Content Snippets and create a new code snippet record
The helpful post –
Hope it helps..