To connect your Ledger or Trezor wallet, install the MetaMask extension in your browser and unlock it. Then, go to "Add account or hardware wallet" and choose your hardware wallet.