Gynecomastia related to puberty cannot be prevented as it is a natural part of growth and development. However, avoiding the use of certain medications, supplements, or substances that can affect hormone levels, such as anabolic steroids, can help reduce the risk of developing the condition.