If I was going to do this I would do it with JS. The exact details of what you would need to do would be hard to say. ACF uses hidden copies of each field and each row layout that it copies when adding rows. I would start by investigating how ACF does it and then do something similar.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users