Try the steps below if screen mirroring is stuck on the connecting screen:
Check for software updates on your Android smartphone and Smart TV. Update to the latest versions if you find new updates.
Try restarting both your Smart TV and Android smartphone.
Disable battery optimization on your Android device to prevent Android from killing the background cast service.