Post a photo so I can be sure, but it's likely dust on your sensor. If you see the spots through the eyepiece but they don't appear in the image, the dust is either on the mirror or on the lens. If you see them on the image, the dust is on the sensor.
Most cameras have a built in ultrasonic sensor cleaning function that should activate every time your turn the camera on or off. If that function is not turned on, you should turn it on. That may clean the sensor and solve your problem without further intervention.
If that doesn't work, your camera's menu has a setting for sensor cleaning. Make sure your battery is fully charged first. Remove the lens and activate the function. This will raise the mirror and expose the sensor. Then you can blow the dust off. Hold the camera face down to increase the chances that the dust will exit/fall out of the camera housing. A Rocket Blower is the best blower because it takes air in the backside and blows it out the snout. Blowers that take in air through the snout and blow it back out frequently suck in dust and blow it back onto the sensor.
If those steps don't work, you'll have to use a more aggressive approach. Let me know when you reach that point and I'll help you.
Gary