You can exercise at a fixed time every day. After continuous fitness, the whole person's mental state will be much better. If you often stay up late, I suggest you give priority to your schedule and get enough sleep for 6-8 hours every day. After all, staying up late will hurt your health. Staying up late will leave your organs in a state of high fatigue until you have enough rest. If you still exercise in this tired state, your body will be very tired.
After staying up late, you can choose some sports with less exercise, such as jogging. Exercise should be gradual, stick to it and you will find that the whole person's state will be much better.