How to apply extra fees for the first order only

This feature is used to apply each user's first-time fees on their order.

In this feature, the user must be logged in to apply this fee and once the user places an order then it will check if the user placed an order the first time or not.

If users order it the first time no matter which products or categories they purchase then it will apply the one-time fees.

After every other order, they will unable to get these extra one-time fees.

Screenshot - 1: (Admin: First order fee settings)

Screenshot - 2: (Checkout: First order fees)