A lot of people walk in, hold a couple of static stretches for thirty seconds each, and call it a warm-up. It isn't. Static stretching a cold muscle doesn't raise your heart rate, doesn't get blood into the muscles you're about to use, and can actually make you looser in a way that reduces power output right before heavy lifts.
What an actual warm-up does
A real warm-up raises your core temperature and rehearses the movement pattern you're about to load. Think light cardio, then movement-specific drills — bodyweight squats before a squat session, band pull-aparts before pressing work, that kind of thing.
Where stretching fits
Stretching still matters — just afterward. Static stretching post-workout, when muscles are warm, is a better time to work on flexibility without the power trade-off.
If you've never had someone walk you through a proper warm-up sequence for your specific training, that's usually one of the first things a session with a trainer fixes.