It depends....in the 2.5gal tank...is it filtered, any live plants, type of substrate and how deep, any other livestock along with the Betta.....
Generally, with 2.5gal filtered tank without live plants-water changes of 50% twice weekly....1-50% water only and 1-50% with substrate cleaning by vacuum or stir and dip will maintain water quality for a single Betta.
Filter media needs a swish/rinse in the bucket of old tank water a couple of times a month to maintain water flow.
In 2.5gal unfiltered without live plants-twice weekly....1-50% and 100% to maintain water quality....
If you have live plants-water changes can vary based on number, species and if active growing or not.....