Hi chaitali,
For implimenting this, make sure you have used the param ‘ rel=0’ in your link, which will stop related videos to your embedded video.
example:
https://www.youtube.com/embed/5Oe5h8YsKKs?rel=0
make sure your URL looks like this,
Hope it helps!