Sometimes back button not showing

I live this situation in ionic 4 and 5 versions. Sometimes when you browse through apps and come back. Sometimes when I go to a page, the back button does not appear. I think the route stack is being deleted.

Sorry for my English. I need help.

Does anyone know about this?