You should start with cardio as it warms up your muscles, then you should do some activation exercises and get into your main workout with the weights afterwards.
The health protocol is to test the heart if ready to do some resistance exercises with weights, dumbbells, etc. Cardiac testing is needed especially for those who have heart problems.
In the case of cardio and weightlifting, it is good to perform weightlifting before cardio. Cardio requires energy and if you do cardio first your body may not have enough strength to liftup weights.
Most fitness professionals would advise you to perform cardio exercises after weight training because doing them first depletes most of the energy source for your anaerobic work (strength training) and exhausts your muscles before their most demanding activity.
Let the cardio exercises be your warm up like after you do stretchings, do some jumping jacks or jogs in place before you train, and still be careful with the weights you'll lift at home because we have less supervision of experts because we can't meet them personally that time
it is good to perform weightlifting before cardio. Cardio requires energy and if you do cardio first your body may not have enough strength to liftup weights.