These icons are called resource bubbles. They appear randomly in the game and are considered an incentive for players who are online and active in the game.
If you click on this bubble, you will receive a certain number of resources, depending on which bubble you click and how high your tick is.
The longer you stay online, the more resources you can accumulate in this way.