There shouldn’t be any movement in the shower arm, only in the showerhead. It may be that the riser wasn’t strapped to the wall, or it may be that you need to reinstall the shower arm.
Original article: https://www.reviewjournal.com/life/home-and-garden/reinstalling-shower-arm-is-easy-fix-2601923/