The cosmological principle is the assumption that on a large enough scale the observable universe is homogeneous (same in all places) and isotropic (same in all directions). To explicate further, every cube of space in the observable universe at one instant in cosmic time of large enough size scale (e.g., side length) should have the same average properties (e.g., same density, same distribution of galaxy properties, etc.).
Further explication of the cosmological principle:
Note, cosmologists have an advantage over historians: cosmologists can actually see the past---the past elsewhere, NOT the past of where we are in the local observable universe: i.e., in the Milky Way in the Local Group in the Virgo Supercluster in the Laniakea Supercluster. However, given the cosmological principle, the past elsewhere on average is the same as the past for all locations (including the local observable universe).
On size scales less than of order ∼ Yadav scale = 370/h_70 Mpc, there are variations in the number and behavior of galaxies, galaxy clusters, galaxy superclusters, and other large scale structures. So cubes of side length less than of order 370/h_70 Mpc do NOT have the same average properties. They have a range of properties and the cosmological principle does NOT apply to them.