Dynamic Logo in New Universal Login Widget


We have a need where-in we need to display different logo presented to the user on the login widget in the New Universal Login (On basis of a dynamic businesslogic)

Is there a way to achieve this?

The branding section provided only allows to upload a logo which always gets picked up and displayed on the login widget.

Is there a way around this where-in I can update the login template with a condition that checks the dynamic business logic and accordingly displays the relevant logo in Login Widget.