It may be due to cervical spondylitis? Please get an x-ray done of cervical spine first. Keep your posture correct always during work and using mobile phones.
Next Steps
Need to examine please visit nearest physiotherapy centre
Health Tips
Do some isometric exercises of neck.
Apply Rhumasyl oil for pain or any pain oil for now.
Thank you