From the Gboard settings menu:
💡 If you can still access the phone's settings (e.g., via the TalkBack vision menu), you can sometimes add a new Google account under Users & Accounts to override the old one. Did you try the Wi-Fi button trick yet, or
In Settings, scroll to → See all apps .
Chrome browser opens. In the URL bar, type: and press enter.
Once in the browser (often via the "Help & Feedback" menu), navigate to a trusted bypass site like LearnOneTech HardReset.Info to access the phone's hidden settings. Pattern or PIN