How do I make elements in repeater have independent ID’s?

They already HAVE independent id’s, but I fear you are not using them. You probably use $w to address the items, but you should use $item. See https://www.wix.com/velo/reference/$w/repeater/introduction and read the part about scope.