I don't want to use Stack Based Navigation in Ionic 5

I have an app developed in Ionic 5. When I navigate between screens and return, this screen is deleted from the DOM and when I re-enter it, it calls the constructor again and the state it had is deleted.

How can I maintain the state of the variables and the page in general no matter how I navigate in the application?