Retirement tax questions

It depends on what you asked the custodian to do. take the fee as a separate transaction.
or take the fee out of your distribution.

If the latter, you will pay tax on  the fee.