Jun 4, 2021
It usually happens in drafts, try to publish it then it scroll and copy will work fine.
Also, Remember it is not responsive to device sizes.
I would suggest to use GitHub Gist or Image of code block. or some other way mentioned in the blog.