My Toyota Yaris Excel (2022 UK spec) doors can be locked with the keyless Smart Key system. Video shows that if a window is accidentally left open the car will lock all the doors but not warn you that your car is not secure.
The video shows how the MyT app will alert you after several minutes but is unable to remotely close the windows. The only solution is to return to your car and close the windows.