Is the historgram shown on the DSLR different than histogram of the same image in Lightroom?

I was trying to take some images and experimenting with the ETTR approach. So, i was trying to take pictures with the exposure setting that would have the right end of the histogram just touching the border on the right.
But the histogram shown in DSLR and the one of the same image in lightroom seem to be different in terms whether the right most end is touching the border or not.

Is this normal ? Why does it happen ? Which one is more accurate ?

I used a nikon d5600