Custom button does not trigger Safari-optimized flow.

Our web layout requires ourselves to implement Sign in with Apple with a custom button, so that we can show the logo left-aligned, for example.


Our implementation is with usePopup: true.


In Safari, a normal popup is shown, asking Apple ID login every time. However, if we use the built-in button, with an "appleid-signin" button, the optimized Safari UX is triggered.


We have tried adding id=appleid-signin to our custom button as well, but this makes things worse, as the built-in button gets rendered inside our custom one instead.


Is it not possible to trigger the optimized Safari experience using a custom button?


Thanks in advance.