Use Google Lens. This example shows an iPhone, Android should have the app already installed.

Install the Google App on your Phone:

‎Google
The Google app keeps you in the know about things that matter to you. Find quick answers, explore your interests, and stay up to date with Discover. The more you use the Google app, the better it gets. Search and browse: • Nearby shops and restaurants • Live sports scores and schedules • Movies tim…

Tap on the Google Lens icon

Point it at something and select the OCR function (looks like a circle with text):

The status will change to "Text found in image". The text will be highlighted in grey.

Tap on the text, select as much as you need

Use "Copy text" to get it onto your clipboard. If you want to send it to a computer, you'll need to paste it into Notes or some program then Air Drop or email the text to another computer.