MathPix uses Optical Character Recognition (OCR) to convert photos, screenshots, and PDFs of mathematics into LaTeX code. (Link)
Pricing
There is an extremely limited free plan, which only allows a small number of conversions per month. A subscription costs $5 per month (with a discount if paid annually).
Alternatives
Nowadays, you could likely use an LLM to convert a scan of mathematics in to LaTeX, but with lower reliability and higher cost.