I'm Designing a mobile app (for android and iOS)
the "side menu" icon is on the left and when needed changes to "back".
when using the X button - should i position it the same as "back" - on the left or to put it on the right side for the screen.
Right Top corner.
In OS point of view more than 70% of world population are used to Windows OS on which it's to the top right corner and people usually search there.
You can place it on Right bottom corner(like few android browsers introduce URL bar at the bottom of screen) but that's not appropriate as accidentally user may press it.