How do I change caret position within a textbox on mobile?

I am working on a mobile project and I am trying to find how to change the caret (cursor) position within a textbox. Works fine on PC with keyboard and mouse, but on mobile (android) tapping between text in a textbox always sets the cursor at the end of all the entered text. So if there is a typo the user must backspace until the typo.

I have the same problem! Have you found a solution?