Which Visio template are you using now?
Please check whether the connectors could be glued to the following shapes?
If yes, you may try to stick connectors to this shape to keep connection even when the shape is moved around.
In addition, here are two threads, you may have a look.
How to rotate multiple shapes with connectors?
How to flip a drawing
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.