There are multiple ways. Statistical significance is largely used to determine whether a sample size is representative but it’s flawed on its own for some sample sizes as small effects can get exaggerated the larger the sample gets. Look up the methods for determining effect sizes and confidence intervals to determine the best route to go to see what minimum sample size is necessary to both have high confidence in the accuracy of the hypothesis and to ensure that the results have enough statistical power to detect the effect in question.
There are multiple ways. Statistical significance is largely used to determine whether a sample size is representative but it’s flawed on its own for some sample sizes as small effects can get exaggerated the larger the sample gets. Look up the methods for determining effect sizes and confidence intervals to determine the best route to go to see what minimum sample size is necessary to both have high confidence in the accuracy of the hypothesis and to ensure that the results have enough statistical power to detect the effect in question.