The point of portrait mode is to take portraits—of people. You didn’t do that, so you didn’t get the result you expected. Just use the regular camera mode.
By the way, check out this other thread discussing the same issue!
https://forums.macrumors.com/threads/help-my-iphone-xs-max-portrait-mode-is-weird.2151634/