Back Button Has Different Functionality on Mobile and Desktop

I have a similar issue, but in my case I don’t even have a back button at on mobile, so I’m stuck with the X button which takes me all the way back to the main screen instead of the previous overlay. Maybe it’s loosely related. Desktop for me works fine though.

Feels like a bug to me. If it doesn’t get fixed, I might have to redo my flow and skip using overlays because it’s becomes confusing and inconsistent for the user and confusing for me too. I can use a breadcrumb as an alternative, but shouldn’t have to, and doesn’t really help the case if the back button does actually show up, which is true you but not for me.

I’d like to see the X and the Back button function the same. The previous overlay opened the current overlay, so in either case, the Back or X should take me back to the previous overlay.