A holiday cactus with long, loose stems can often be reshaped after flowering, when the plant is ready to resume growth. Inspect its light and root health as well, since pruning alone will not fix weak growing conditions.
Distinguish natural arching from weak growth
Holiday cacti develop hanging segmented stems as they mature. A trailing outline is not automatically a pruning failure. Check whether new growth is firm or pale and unusually stretched before deciding how much to remove.
Shape selectively after the display
When healthy growth and timing allow, remove selected sections at appropriate joints rather than stripping every branch to an identical length. Leave enough sound stems for recovery. Delay major work if the plant has failing roots or is already stressed.
Correct the growing conditions too
Provide bright filtered light, gradually changing exposure. Holiday cacti are forest cacti, so prolonged desert-style drought is inappropriate. Check the root zone and water as needed, allowing excess to drain from the pot.
Use sound sections for propagation
Suitable removed segments can become cuttings with appropriate preparation and rooting conditions. Keep decayed material out of propagation. Improving light matters alongside pruning; otherwise the replacement growth may become weak again in the same dark position.



Related reading
What Does Letting Soil Dry Between Waterings Mean?