Update: the issue is visible in pretty much any text input in android chrome (version 140.0.7339.155). I tried typing text in news.ycombinator.com comments, yandex.com and youtube.com. All demonstrate the same issue. I also tried firefox. In that browser the search in youtube web mobile behaves correctly. Which makes me to believe it's android chrome issue.