Presenting view controller on iPad looks different from Mac

Presenting a view controller on an iOS app on iPad displays the vc in the middle of the screen. When running the app on Mac the view controller gets stuck to the top of the screen.

navigationController?.present(viewController, animated: true)

On iPad (as expected)

On Mac

Using macOS 12.1 and iOS 15.

Is this a bug?