Ankylosing spondylitis, is a life time issue, it requires early treatment with regular exercises.
Next Steps
spinal extension exercise, stretches are required , kindly consult a physiotherapist and learn exercises . If pain is severe , pain relief modalities are necessary.
Health Tips
avoid slouched sitting and try to keep your spine straight .