how does the youtube task work?

I mainly use pindiy on my phone, so ill have to open up the YouTube video in the actual app. does the code appear at the end of the video or do i need to use an actual laptop/computer for the code to show up?
Section