YouTube, as well as any decent player, plays any aspect ratio video, even portrait mode.
As an uploader you should never add black bars (if they are in the source, crop them out before uploading) and of course never distort the video. This ensures the best playback experience for all devices.