Isn’t it right that bitcoins transactions are only confirmed when a block is mined? So when we hit 21.000.000 and there are no blocks to mine, how will you transfer your bitcoin if it can’t be confirmed?
A misunderstanding. Blocks will continue to be mined after the last new bitcoin is delivered as a block reward several years from now. Miners are also paid any transaction fees as well as the block reward. This is why there are transaction fees. The number of blocks is not technically limited, provided several caveats e.g. there is enough storage available to download the blockchain.