As per my knowledge you can see object indexes based on the number of element visible on the screen.
If screen size is large and you have 10 objects with same ids then it will create index from 0 to 9 and if another device which is small in size will show only 7 objects then you’ll be getting indexes from 0 to 6.
I hope this is the case you are facing.