How does the Sun's mass change during its later evolutionary stages like the red giant phase?

Answer

It can lose nearly half of its starting mass through mass loss spikes

Mass loss accelerates during the red giant and asymptotic giant branch phases, causing the Sun to potentially lose nearly half of its initial mass before settling as a white dwarf.

How does the Sun's mass change during its later evolutionary stages like the red giant phase?
astronomystarmass