Would you have the controls also be reversed (left becomes right and vice versa)? I'm not sure what makes most sense. Maybe you'd get used to it after a while.
What I am planning to do is make it like in games that have fixed cameras: When the camera changes, the character keeps walking into the same direction unless the player presses in another direction.
No, just the one. You step the portal and the only the world reverses. You keep holding right, and you go right-original, through the portal, then right-mirrored, but it's always right, so there's always agreement between the user's direction and the motion of Mario. It's the world that gets flipped instead of your control scheme.
The idea that Stabyourself puts forth is arguably the default answer, in the sense that it is the usual one, but while basically functional, it never ever feels right. I just got done with Catherine recently which does the same basic thing (albeit with going behind something instead of going through a portal, but it's the same reversal problem) and 18 hours into the game it still felt unnatural... and that's hardly the first time I've encountered the "keep going a certain direction while held, then completely rekajigger the interface at an arbitrary point in the future when the user recenters the controls", either, so it's felt unnatural for even longer than that. (For bonus points, play on an Atari 2600 controller that just likes to cut out for a frame or two every so often, so the effect is that the game's controls appear to simply spontaneously revert.) Flipping the world would at least be changing things up.