It's like us learning regular English in school but everyone
speaks Shakespeare or something (of course it's not that
dramatic of a difference).
Actually it is a pretty dramatic difference. Cantonese and Mandarin split roughly 1000 years ago, whereas the difference between Shakespearian English (which is considered Early Modern English) and Modern English is only a few hundred years. In addition, Modern English is a descendant of Early Modern English whereas Cantonese and Mandarin are not descendants of one another.The Chinese writing system tends to obscure these differences because cognates among the different varieties of Chinese are represented using the same characters, even though their pronunciations have diverged considerably. There are vocabulary and grammatical differences as well, though they are not as big.
The difference is more akin to if English speakers had to write in German†, but because they generally don't know how to actually speak German, they would read it using English pronunciation instead. For instance, if you wanted to say "I know that you said that", you might have to write:
Ich weiß dass du das gesagt hast.
But you would read it "in your own language" as: I wit that thou that y-said hast.
This is similar to the current relationship between Cantonese and Mandarin. Cantonese speakers write in Mandarin (i.e. "Standard Chinese") and read it "in Cantonese", even though when speaking, they would really say something almost completely different. When Cantonese speakers actually write in Cantonese, Mandarin speakers generally would have difficulty reading it.† The difference between English and German actually spans more than 1000 years, but I'm not as familiar with other closer Germanic languages with which to provide a good example.