The Nintendo Switch 2 is made to spend extended time in sleep mode, in which your game is paused. However, that doesn't mean it should stay there forever.
If you have an Android device, you should know it comes with an ‘automatic turn on and turn off’ feature. This option makes a smartphone power itself off at a set time, and then switch on ...