Sure, you can do that. Here I used a custom button card:
type: custom:button-card
show_name: false
icon: mdi:play-box-multiple-outline
tap_action:
haptic: heavy
action: fire-dom-event
browser_mod:
command: popup
title: Media Browser
hide_header: false
large: false
card:
type: iframe
url: /media-browser
aspect_ratio: 200%