Custom code for sizing YouTube videos on different breakpoints

Hi there,

Does anyone know what custom code I can use on my article/post template so that YouTube videos are the full width on mobile screens, but ‘auto’ on all other breakpoints.

I am using a dynamic articles template page that pulls the blog content styling from the same rich text field, so I think the only solution is custom code?

Thanks so much for any help offered.