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.