Order this Yamaha part number:
90338-09012-00
It's made to plug the threaded mirror mounting hole if no mirror is used.
It's black rubbery-plastic.
It can be seen on a Yamaha XT-250G (1980) parts catalogue on the page that shows the control cables.
Lists for $3.63
I've used them.
They work. :)