I did check UIScreen.main.bounds.size in code which is where I was seeing 1024 x 768 in the debugger. Almost appears as if something is preventing the OS from recognizing that the app has been built with XCode 13 and SDK 15.2 and so it's running the app as if it's been built using XCode 12 etc.
There are 7 distinct logical resolutions covering all the different iPad models and our app gets the full screen size and sizes itself full-screen for all of them except the iPad Mini 6 running iPadOS 15.
https://iosref.com/res
Over the last couple of days I have tried changing a bunch of other settings to see if they would make difference, so I did set UIRequiresFullScreen = NO but it made no difference. I changed other things like changing the minimum system version from 8 to 15, also no difference.
Really frustrating, Apple claims all you need to do is rebuild with XCode 13 and SDK 15, but something isn't quite working for our app with just that change.