It's not an issue of one clock moving and the other clock not moving, it's that one clock is inertial and the other clock is not inertial.
In his 1905 paper, Einstein only considered Inertial Reference Frames (IRF's) and he described the "twin paradox" using the IRF in which the inertial clock was stationary. You only ever need one IRF to define a scenario. It doesn't matter whether the clocks are stationary, moving inertially at a constant velocity in any direction, or changing speeds and/or directions (accelerating), one IRF is all you need. But if you want, you can transform the coordinates of all the significant events according to the defining IRF to another IRF that is moving with respect to the defining IRF and this will make the stationary clock move at some constant speed but it is still inertial and it will make the other clock move at different speeds, even being stationary during some part of the scenario, but it is still non-inertial.
So when you define a scenario according to one IRF where the first twin remains inertial on the Earth and the other twin travels away from the Earth at a constant speed and direction and then turns around and travels back at that same constant speed but in the opposite direction, there are two more different IRF's in which the traveling twin is at rest during each half of the trip and the Earth twin is moving inertially but you must consider the entire scenario from each of these two IRF's. The Time Dilations of the twins will be different in each of these three IRF's but they will all explain the difference in aging between the twins identically.
Perhaps a concrete example will help. Let's consider a typical Twin Paradox. I'm going to depict the Earth twin in blue and the traveling twin in red. The traveling twin departs Earth at a speed of 0.6c and after 8 years according to his clock, he turns around and spends another 8 years coming back at the same speed. When he reunites with the Earth twin, they find that the Earth twin has aged 25 years while the traveling twin has aged 16 years. The dots on this diagram mark off one-year increments of time for both twins:
Please note that in this IRF, it is only the traveling twin whose clock is Time Dilated by a factor of 1.25 during the entire scenario. This is because his speed is 0.6c during the entire scenario according to this IRF. Also note that the Earth twin is inertial during the entire scenario while the traveling twin is not inertial during the entire trip.
For the next two IRF's and their diagrams, I'm going to refer to the Earth twin as the inertial blue twin and the traveling twin as the non-inertial red twin.
First we're going to transform to the IRF in which the non-inertial red twin is at rest during the first part of the scenario. The diagram looks like this:
Note how the inertial blue twin is moving at -0.6c during the entire scenario and so his clock is Time Dilated by 1.25 the entire time. During the first part of the scenario, the non-inertial red twin's clock is not Time Dilated because he is not moving. But at his time of 8 years, he starts moving at -0.882c where his Time Dilation is now 2.125 and after 8 more years he catches up to the inertial blue twin who has aged 25 years by the time they reunite.Finally we're going to transform to the IRF in which the non-inertial red twin is at rest during the last part of the scenario:
This is similar to the previous IRF so we can use the same numbers but in different orders but the net result is that the twins age by the same amounts.
I hope this is clear and removes all your confusion. If not, ask.