Pointing a specific div only in a specific Collection item


I have a project that need some custom code.
I already have support by a frontend developer, but before asking him something crazy I wanna be sure it is feasible.

Is it possible pointing with js a div in a specific Collection item? (without pointing the same div in all the other items in the same collection)
I noticed it’s possible adding an id to an element in a collection item, but then the same id is added to the same element in all the other items.

I hope it makes sense.