I came to another place and tried to display the image on the projector. Surprisingly, it worked without any problems. After that, I tried to connect to the tablet and the connection was not interrupted. The most amazing thing is that when I distributed Wi-Fi from my phone, the connection worked just as stably, although nothing worked yesterday.
I will definitely write when I get home and check the application again