The question marked folder indicates no usable OS is found at startup.
If your Mac starts up to a question mark - Apple Support
You'll need to reboot in recovery mode and reinstall macOS on that internal drive, or on an external drive that has been properly formatted. Formatting can be done with Disk Utility while booted in recovery. You must have a good internet connection to the Mac to get this done.
How to reinstall macOS - Apple Support
Your 2012 iMac can run macOS Catalina as can the MBP, so you may be able to use that to create a bootable installer for that OS if you can't get the OS installed on the MBP in recovery. Create a bootable installer for macOS - Apple Support
You cannot create this installer with your 2025 Mac mini.
With Catalina installed on the MBP, you may then upgrade it to macOS Ventura, the newest OS that it can run.
Update macOS on Mac - Apple Support
Edit -
Almost forgot to provide you guidance for installing macOS on your external drive. You can use your 2012 iMac to install Catalina for your MBP.
How to use an external storage device as a Mac startup disk - Apple Support