Is it really the first generation though? The screen is obviously 1st gen for Apple, but you'd think the rest of it is not: OS, battery, camera.
For iOS 27, apps are automatically automatically opted in to resizability. Apple was clear at WWDC that apps need to dynamically adjust to any available scene size at runtime, not just for iPhone Duo, but also for iPad windowing and iPhone Mirroring on Mac. There may be a grace period, but Apple hasn't shared one AFAIK.
I'm not trying to discount the efforts involved here, just pointing out that they aren't starting from scratch. And much of the required features to support a dual-screen (triple-?) phone has been in the works for a while.