Hello @Machado, Eduardo,
Yes, unfortunately this behavior is expected, and there is no built-in way to uniquely target just one secondary button like the Cancel button using CSS alone in Entra External ID's default user flow. The .ext-button.ext-secondary class applies to all secondary buttons, and Entra External ID does not expose unique IDs or additional classes for individual buttons in the default flow.
The workaround is to switch to the custom policies where you can host your own HTML templates. This gives you full markup control: add IDs, unique classes, even custom JS.
As of now, this is the only supported way to reliably target individual elements like Cancel.
Unfortunately, we had hit the limitation, we always look to improve and would love to hear your thoughts. If you have any ideas or feedback on the feature in the question, please let us know your idea in the below given portal and our development team would be constantly monitoring them. https://feedbackportal.microsoft.com/feedback
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".