From my research into microscopes for fine electronics work, the keyword you are looking for is “trinocular”. They have standard camera mounts built in and you can attach almost any camera via an adapter.
Aliexpress /temu/ebay etc sell cheap eyepiece phone holders - not perfect, but makes my ex-schools microscope so much easier for my kids to use as we can a see the screen together.
It's not as good as the devices built to take pictures or videos through microscopes (or microscopes that use them built in). It is a cheap and easy way that I've had success with.
there are some microscopes which are selling with a separate camera. microscope and camera spend you at least 6000$, then you can capture pictures on computer.
https://amscope.com/products/b120c-e3?gclid=Cj0KCQiAkeSsBhDU...