They are different but some monolithic platforms offer the possibility to use some APIs to build an e-commerce application that is comparable to an headless platform. For example Shopify has APIs that web developers can use to build a custom front end. Also Salesforce Commerce Cloud, SAP and Adobe Commerce offer this option.