In repeating confidence interval experiments, are we allowed to take samples of different size every time? Because a confidence interval of 95% means that if the sampling process is repeated infinite times, 95% of all the intervals obtained will have the parameter of interest.

So wrt this process of repeating infinite times - do we have to repeat with the same sample size or can we vary it?