SignUp per Application - disabling .ulp-alternate-action removes to much

Hi I followed this article to remove the signup link for certain apps:

I used the following code in HTML

/\* Custom Logic to hide Sign Up for specific app \*/ {% if application.name == "" %} .ulp-alternate-action { display: none; } {% endif %}

But .ulp-alternate-action does not only remove the signup link. It removes also other links like “return” on all screens or options to ignore Passkey. That leads to the situation that I am enforced to enable Passkey because the “ignore” links is not displayed.
Is there a better way to remove the signup link for certain apps?