The aerosol-generating device (1) comprises a device housing (2) comprising a receiving chamber (3) adapted to receive any one of a first-type consumable (41) and a second-type consumable (42). The receiving chamber comprises a first structure (31) for receiving a first- type consumable and comprises a second structure (32) for receiving a second-type consumable or comprises a structure selector (70) for selecting between a first structure and a second structure. First and second structures differ in at least one of shape, size or position in the receiving chamber. The device further comprises an aerosolization system (60) associated with at least a portion of the receiving chamber, and a detection system configured to detect the presence of a first-type consumable or of a second-type consumable inserted into the receiving chamber. The aerosolization system is configured to cooperate with any one of a first-type or second type consumable once inserted into the receiving chamber, for generating aerosol.