How to properly stack card modals?

I have set the presenting element to IonRouterOutlet.

The first modal is having a proper effect but the second nested modal is not having the expected effect.
When, I set presenting element to the ModalOne, it effects the styling of it and looks weird