Use should be able to switch between passwordless and username/password database login modal UIs

We want to support database username+password and passwordless connection types for a single user. How can the user prompt the passwordless login flow (Phone Number / Email input) from within the standard username+password login flow? Shouldn’t there be an option that the user can select to switch the login to passwordless (since it’s enabled on the app level)? We don’t want to always have to show one OR the other using the connection=email|sms in the authorizationParams. Does this have to be (and can it even be) done in a custom HTML login modal?