Logging into Gmail requires oAuth2 support now that Opera Mail doesn't support. However, someone said that if you goto https://myaccount.google.com/security, enable 2-step verification, create an app password for Opera Mail and use that app password to log into your Gmail account in Opera Mail, things will still work. You'll have to test.
On a side note, make sure to fix Opera Mail's TLS settings.