Both male and female bettas can exhibit glass surfing behavior in the aquarium. Glass surfing is not gender-specific and can occur in response to various environmental factors that may cause stress or discomfort to the fish. However, it is important to note that male bettas are generally more active and territorial than female bettas, and they may be more prone to glass surfing if they feel threatened or agitated. Female bettas, on the other hand, are generally less aggressive and more social, and they may glass surf if they feel bored or lack stimulation in the aquarium. Regardless of the gender, if a betta fish engages in glass surfing behavior, it is important to identify and address the underlying cause to ensure the well-being of the fish.