There used to be a video on YouTube (on the official ডিজনি Channel account) explaining the tricks behind this, but unfortunately it's not up anymore.
Anyway, ঘুঘু Cameron has two নায়িকা who portray her "doubles" - they are listed as "Liv 2" and "Maddie 2" in the end credits of each episode. We only ever see the backs of them in the episodes, and they're there whenever both Liv and Maddie need to be on screen at the same time. ঘুঘু plays the one whose face we see, and one of her doubles stands on screen as the other twin!
When ঘুঘু is on screen as both Liv and Maddie, there is a line on set somewhere that the other actors have to make sure they don't cross! The cameramen record one side of the set where she is অভিনয় as Liv, and the side where she is অভিনয় as Maddie, separately. Then the editors put both sides together so it looks like there are two ঘুঘু Camerons!
Sorry if I haven't explained it very well! If ডিজনি ever puts that video online again I'll give আপনি the link. It's pretty cool!
Anyway, if you're interested in seeing what "Liv 2" and "Maddie 2" look like from the front, I found these pictures here where আপনি can see ঘুঘু Cameron with them!
Pics of ঘুঘু and her doubles:
link I hope this has helped! :)