Automatically force portrait mode when opening TikTok on iPhone Duo

Hey, I was wondering if there’s a way to make an automation that automatically switches TikTok to portrait mode whenever I open it while my iPhone Duo is unfolded.

I prefer watching TikTok vertically on the inner display, even when I’m holding my phone horizontally. Ideally, when I exit TikTok, I’d like the screen orientation to go back to normal.

I’ve already tried using the Orientation Lock action in Shortcuts, but I couldn’t get it to work the way I wanted.

Does anyone know if this is possible or if there’s a workaround? I’d really appreciate the help.