All I could find on the internet was about how stars vary in brightness depending on their distance to Earth, temperature, type of star...
But my question is, can a star can change its brightness.
All I could find on the internet was about how stars vary in brightness depending on their distance to Earth, temperature, type of star...
But my question is, can a star can change its brightness.
They can, and some do. These stars are called variable stars, because their luminosities as observed from Earth vary over time, often (though not always) in a regular period. Here are some broad categories:
The change in brightness and the length of the variations depend on the type of variable star in question. The luminosity can vary by anywhere from a fraction of a magnitude to many magnitudes. Likewise, the period (if there is one) can range from hours to years.
Looking at the question longer-term, a star's brightness also changes as it evolves:
starting possibly with some brightness of its initial accretion disc,
then as nuclear burning begins it becomes a true star (check out the Hertzsprung Russell diagram showing stellar evolution)
later in its life, depending mainly on its mass it can either evolve into a near-dead dwarf, which will be increasingly dim
alternatively, heavier stars go supernova and become so bright as to briefly outshine galaxies before becoming dimmer again as neutron stars or black holes.
So to answer your question broadly - stars during their lifetimes do vary in brightness on a vast scale.
If interested further, I suggest you look up:
https://en.wikipedia.org/wiki/Hertzsprung%E2%80%93Russell_diagram