My body has had some major injuries over the years and I’ve had a my appendix removed which definitely impacts my posture.
Stretching helps keep me in line.

Nothings a tablet of stone; initially I did static stretches, then a combination of static and dynamic, before going back to mainly static.