In order to offer free and non-free shipping, a cart price rule should be configured which reduces the shipping cost to zero without changing the actual shipping method.
Please follow these instructions: https://docs.magento.com/user-guide/marketing/price-rules-cart-free-shipping.html