If you notice in yourself ‘riyaa’ then increase doing worship in secret, not being seen by the people

He who lets the people hear of his good deeds intentionally, to win their praise ..