How to disable Youtube related videos?

Hello, I want to disable the related videos shown at the end of my videos:

I found that using:

?rel=0

will disable it, but when I add this code to the URL (in YouTube snippet, under “Properties”), the video don´t display.

I got to use the ?rel=0 code using “HTML” snippet instead of YouTube snippet. The problem here is that I need to show different resolution in “phone layout” from “Desktop layout” but it use the same resolution for all modes.

My web page:
https://iconic-tuition.000webhostapp.com/en/#home

Thanks you in advance.

Most tutorials use the code you’ve already suggested

Probably best checking here

https://productforums.google.com/forum/#!forum/youtube

Thanks for your fast response.

For me it seems that the ?rel=0 works yet. See the scrrenshot:

I am using the website builder (http://us.zyro.com/).

In the left video i used HTML and I pasted this code:
<iframe width="310" height="184" src="https://www.youtube-nocookie.com/embed/rlmFmX5oqzA?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The other two videos are using the YouTube icon type:

1 Like

The problem is that the video size is managed by the iframe code:
…width=“310” height=“184”…

and not by the HTML -> Properties ->Options -> Size.

I can not set different video sizes for each screen size (phone, Tablet, pc…)

This is the problem that I can not solve.

Any ideas?