After searching the solution and did many times of trial-and-error, finally I found the solution to fix this! Simply adding the following code into the styling section, then you can scroll the mathjax equation instead of scrolling the whole screen
mjx-container {
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
}