Hello Nitin, as the Like button on Youtube doesn't have a real ID, we can still use relative/absolute xpath to locate it. You can get the xpath with the help of ChroPath extension. For eg: Xpath for Like button on a youtube video is:
//div[@id='info']//ytd-toggle-button-renderer[1]//a[1]//yt-icon-button[1]//button[1]//yt-icon[1]