If foldable phones really do take off in the future and actually become cheap enough that anyone can afford it I can see reason to invest in making it work on those devices in a special(ish) kind of way. Right now though I really question a couple of things:
A: Are foldable phones really here to stay? Or are they just another fad? Right now they just seem like a fad all the manufactures are jumping on.
B: Current foldable phones generally either fold out into a really small tablet or from a flip phone to a regular size smart phone, so with the screens on either side being small does it really makes sense to make a "special" experience for just those phones? Especially since Flarum has a great experience on tablets and regular size phones right now.
C: For the large foldable devices (like the surface neo/duo) how many users are actually going to want Flarum on both screens, personally if I had two screens I would be multi-tasking, not using both to use a single application.
Until foldable devices actually have a decent size market share (in my opinion at least 5% or more) it makes no sense to spend time, energy and resources on developing special experiences for those devices, especially if those experiences aren't actually going to be used by people.