Short answer
Under the long-standing rules, Archie and Lilibet became entitled to be styled Prince and Princess, with HRH, when their grandfather became king in September 2022. Whether the styles are used in everyday life is a separate matter, and it has varied in practice. Details can change, so check an official source for the current position.
What the rules say
The key rules come from letters patent issued by George V in 1917. They give princely titles to the children of the sovereign and to the children of a sovereign’s sons. Prince Harry’s children are in the second group once Harry’s father is the monarch.
Before and after 2022
While Elizabeth II was on the throne, Archie and Lilibet were her great-grandchildren through Harry. The 1917 rules did not give them princely titles automatically at that point, so they had courtesy titles associated with their father’s rank, as the children of a duke’s younger son. When Charles became king, they became grandchildren of the sovereign in the male line, so the same rules entitled them to be Prince and Princess.
Entitled versus used
Being entitled to a title does not mean it is used. Harry and Meghan had earlier stepped back from official royal duties and said they would not use the HRH styles. After the accession, their website began referring to Prince Archie of Sussex and Princess Lilibet of Sussex. The styles are not necessarily used in formal royal publications, and the sovereign can issue letters patent to alter the position.
A note on HRH
HRH is a style that goes with the title of prince or princess, so a child entitled to the title would normally also be an HRH. Not everyone chooses to use it. See British royal family titles explained for more on how the pieces fit together.