How do I get to an ID or something for a specific word in a dynamic page?

I am working on a chrome extension project that stores a word in the database and when I click on the button or something the word that was stored in the database before will be highlighted, Even if it is repeated many times, only the previous word will be highlighted