Thanks for your question. You are most likely to be suffering from an ophthalmic migraine
. In this condition you may have a visual disturbance that returns to normal after a few minutes. There may or may not be associated headaches
as well. In most cases it does not require treatment.
However, there are a few more worrying conditions that should be ruled out first. I would recommend that you see your eye doctor for a full eye examination including a dilated retinal examination.