Exercise naked an eliminate the problem.
Yes, the ancient Greeks didn’t have this problem since they normally did athletics in the nude.