How to upgrade MathJax from 2.*** to 3.++ in xblock?

I am trying to use MathJax in my xblock app. athjax@3 works great in my local development but when i moved app to edx plaform, it automatically pulls the defaults version mathjax@2.7.5 which has some issue rendering latex and loading problem. I highly appreciate for any help. Thank you !!