If your goal is to gain muscle or lose fat, you need to do some strength training every day. Generally speaking, the time of each strength training should be between 30 minutes and 1 hour, including warm-up and relaxation time.
Of course, this is only a general suggestion, and the specific fitness plan needs to be adjusted according to your specific situation. If you have just started fitness or have any health problems, please consult a doctor or professional fitness coach first.