Wikipedia indeed uses LaTeX, indirectly.
The Wikipedia editors (users who write/edit articles on Wikipedia) enter text like <math>\sqrt{1-e^2}</math> into the source code of the Wikipedia page, and save the page. Of course what is supported is not arbitrary LaTeX, but a pretty extensive syntax suitable for math formulas, which is documented on this page.
Then when the page is viewed, the software (Mediawiki) uses texvc which is used to generate the images. This is a wrapper around an actual latex binary: it verifies that the input fits some restricted LaTeX syntax (documented above), creates a latex file containing that input, runs latex on it, and uses dvipng to generate an image. (This is not done every time a viewer views the page, but is cached on the server after the first time: which is probably when whoever was writing the page looked at the preview.) When the Wikipedia page is viewed, each such image is placed on the page, with the alt-tag being the original LaTeX-style source. For example, the HTML source may say:
<img
src="https://wikimedia.org/api/rest_v1/media/math/render/svg/1a1835e62332fad1e2fa7f2c6e34972788e59cb3"
class="mwe-math-fallback-image-inline"
alt="{\sqrt {1-e^{2}}}\!">
If you're curious, you can directly visit that url (https://wikimedia.org/api/rest_v1/media/math/render/svg/1a1835e62332fad1e2fa7f2c6e34972788e59cb3) and view the generated image.
Now when you try to view the page, if there are network issues, or if the Wikipedia servers are slow, your browser may not be able to load the image. When this happens, your browser (whether on your phone or your computer) will probably display the alt-text. In the above case, in place of the image you will see {\sqrt {1-e^{2}}}\!. If you reload the page on your browser, the "problem" may fix itself, and you may see the images again.
One way that all this is useful to us TeX/LaTeX users is that if we're not sure how to enter some formula into TeX, as a shortcut we could visit a relevant Wikipedia page and see how the Wikipedia editors entered it. For example if you visit the page for quadratic formula and copy text around the image, your browser will copy
{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}.}
Of course though useful as a reminder sometimes, this is not something that can be highly recommended: random Wikipedia editors may not always follow best practices, and they may need hacks for their restrictive syntax that do not apply when you're using LaTeX "for real".