Go to your Videos page in YouTube Studio. Click the title of the video you want to edit. Under Audience, click the drop down next to Age restriction and select Yes, restrict my videos to viewers over 18.