To accomodate that you design your page so the user first enters username. In your system you check based on email who the identity provider is and redirect to that login journey.
For e.g. if Microsoft you redirect to Microsoft login page to authenticate.
If successful the third party login provider will send you back to your app with a JWT. In your app you check if the JWT is valid - if so allow access.
On first entering email on login, If your login provider is your own app, you redirect to your own login password page.
For example, I don't know what login method a user would be using (our own password? or redirect them to their corporate's auth portal) until they enter their email.
Other services show both the username/password but send requests to the server as the user types their email address and take away the password field if it's an email associated with an SSO domain. I believe this is how Dropbox does it (could be remembering wrong).
By way of background I should point out that logins can be a Lot more complicated than just "enter login and password" and critically the complexity may be different per user.
For example some users have 2FA turned on, so we need to collect user name, password And say SMS code. This is the very tip of the iceberg.
So identifying the user first can make it easier to then determine which path to follow.
Ultimately I didn't go this route because AJAX can be used to get the user-name when entered. However it can then get complicated when the user name and password are entered and the login button clicked at the same time (like by a password manager).
So multi-step input is easier to code.
All of the other comments seem to have much more logical explanations, like SSO and OAuth options.
Maybe they really want people to use their app.