On mac, chrome is not centered, and shifted to the right. How to fix it? This is its behavior.

Also, I was able to maximize the window and see the screen properly. However, as soon I exit the maximized window, it shows the same issue again. Refreshing the page obviously does not help.
Also, if I open a new window, that window is also showing proper. Just every tabs in the previous window are messed up.
How to fix this behavior?
It looks to me like it's &quot;not centered&quot; because your window is actually much wider than your display screen, and extends to the right of the screen. (I think you'll find that within the window, the display of the content actually is centered.) I have seen this on rare occasion. I don't know a fix that's elegant, but you should be able to fix it in this inelegant way: Click and drag the left edge of the window to reduce the width of the window; then, grab the window header to move the whole window back over to the left, hopefully revealing the right edge. If the window is still too wide, repeat the operation until it fits on your display screen. Then size the window to your preference.