How to cause to the HPA wait for the initial pods in the scale-up

I use Kubernetes version 1.17 and I want to add a flag that makes the HPA wait for the new pods in the scale-up to be initial before he made more new pods. (the reasons are because the HPA made more pods than he needs in two or three iterations when the first pods really start to take part in the load he made scale down and remove the unnecessary pods).
I cant use “behavior” because it is available from 1.18.
I want to know if there is another way to do that.