The "ancient builders" have many different structures located in different biomes, in very different styles. This leads me to conclude that there were multiple of these ancient civilizations.
Oldest Builders- These builders are the oldest by far, and did not become undead, so old that their bodies would be far too decayed. Their ancient structures are so old that they have become burried by the natural rising of the ground from creatures dying over time. We know very little about them. They may have also made the ocean ruins, as the materials are similar to those in trail ruins, and have the same suspicious gravel.
Ancient Builders- This civilization is the one which built the ocean monuments and piglin bastions, and were the most advanced of the builders. The piglins found their old mines and forges, and took shelter from the heat, never meeting the creators of the structures. Prismarine is an unusually resilient and entirely artificial, and as a result, did not decay, while the same cannot eb said for the jungle temples. The temples became heavily overgrown, and their smooth stone and bricks cracked overtime into something more similar to cobblestone. The redstone in their structures survived only by virtue of being burried inside the walls of the structures.
"Recent" civilization- These builders made the desert temples and posibly igloos and shipwreks. They used large ships to try and explore the old ocean monuments, but at their time, the guardians were still extremely powerful, while in the modern day, the guardians have somewhat degraded. I think they made the desert temples, because the temples have working redstone machinery blatantly out in the open, made of wood. TNT in real life can decay over time to my understanding, an the temples contain it.