Hello, as you said your neck is not straight always, if it is only while working , than that could b due to wrong posture. You might b maintaining wrong posture while working and in that subconscious mind you tend to tilt your neck. To correct your posture you need to start doing posture correction exercises.. Can consult a Physio to guide you more about posture correction and ergonomics which might help you. Start correcting your posture and try maintaining it while you are working and concentrating in your work. That might help you.
Dear friend As your child Is 1 year old and tilt his neck to one side,sometimes can be called torticollis or wry neck,which can only be confirmed once the proper assessment is done.
So according to me visit a good orthopaedecian.
Hot fomentation x twice daily.
Shoulder Shrugs .
Core Strengthening Exercises.
Take frequent Breaks at work
Use cervical pillow.
Use Back Support.
Self Massage the back of neck.
It will help to get him checked by an Ent if there are any internal year issues ...
Also See a physiotherapist to clear any spine issues and for correction of his postures in sitting , studying , etc.
Wish you a happy healthy life :)