You changed a DNS record, dig shows the new value and your browser still goes to the old server. Cache.
On systems with systemd-resolved, one command clears the local resolver caches:
resolvectl flush-caches
The manual says it is mostly the same as sending SIGUSR2 to the service, so you do not need to restart anything. No output means it worked.
Do not expect miracles. This only empties the cache on your own machine. Your router, your ISP resolver and the browser keep their own copies, and Chrome and Firefox have an internal DNS cache as well. If the old address survives a flush, check those next, and check the TTL of the record to know how long they may hold on to it.
It also does not touch the hosts file, which wins over DNS anyway.
If you want to check that the flush did something, resolvectl statistics shows cache numbers before and after. It is a quiet command, so a number is the only proof you get. Run the lookup again afterwards and compare it with dig. A lookup right after a flush has to go all the way to the upstream server, so it may feel a bit slower for a moment.
Further reading: resolvectl manual, On this site: resolvectl query shows how a name was resolved, On this site: resolvectl monitor streams every DNS query live