Media and Templates folders shouldn't be disallowed at first place.
GoogleBot now requires access to the css/js of a website in order to understand the design and layout of a website, and these two Joomla folders are the location where most of css/js are located.
So it does make sense that Google reported that your website isn't responsive, as it didn't have access to the needed files.
However, if there was a reason for you to disallow media and templates, then you can keep the disallow as is and later on specifically allow access to individual files or subfolders of the above folders.
For more info on how to create your robots.txt read here: http://www.robotstxt.org
For your information, this how the recent robots.txt file that is shipped with Joomla looks like:
# If the Joomla site is installed within a folder
# eg www.example.com/joomla/ then the robots.txt file
# MUST be moved to the site root
# eg www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to all of the
# eg the Disallow rule for the /administrator/ folder MUST
# be changed to read
# Disallow: /joomla/administrator/
# For more information about the robots.txt standard, see:
# For syntax checking, see:
As an example of what I explained above, you can add below the above lines, specifically allow instructions like so:
Use Google Webmasters Tools - robots.txt tester to test your robots instructions: https://support.google.com/webmasters/answer/6062598?hl=en