Is it possible to select from a collection of images for example of 30 years and ask only the image of July for each year? The below only include July images for a single year.
var aoi = ee.Geometry.Point([0, 10])
Map.addLayer(aoi)
var collection = ee.ImageCollection('COPERNICUS/S2')
.filterBounds(aoi)
.filterDate('2020-07-01', '2020-08-01')
ee.Filter.calendarRange(183, 213, 'day_of_year')
. Because of leap years, you don't get exact calendar month, but hopefully close enough for your use-case. code.earthengine.google.com/9e2fe3a1785ce3a676a245154c58375a