Browser_mod.popup service problems

I have this script:

scelta_musica_sonos:
  alias: Scelta Musica su Sonos
  sequence:
    service: browser_mod.popup
    data:
      content: Cosa vuoi ascoltare?
      right_button: Favoriti
      left_button: Playlists
      right_button_action:
        service: script.turn_on
        data:
          entity_id: script.popup_sonos_favoriti
      left_button_action:
        service: script.turn_on
        data:
          entity_id: script.popup_sonos_playlists

which calls other two scripts:

popup_sonos_favoriti:
  alias: Popup Sonos Favoriti
  sequence:
    service: browser_mod.popup
    data:
      content: In quale Sonos vuoi la Musica?
      right_button: Salotto     
      left_button: Studio
      right_button_action:
        service: media_player.select_source
        data:
          entity_id: media_player.salotto
          source: '{{ state_attr("sensor.sonos_favorites", "items").values() | list | random }}'
      left_button_action: 
        service: media_player.select_source
        data:
          entity_id: media_player.studio
          source: '{{ state_attr("sensor.sonos_favorites", "items").values() | list | random }}'
popup_sonos_playlists:
  alias: Popup Sonos Playlists
  sequence:
    service: browser_mod.popup
    data:
      content: In quale Sonos vuoi la Musica?
      right_button: Salotto
      left_button: Studio
      right_button_action:
        service: media_player.select_source
        data:
          source: '{{ [ "A Passion Play (2014 Remaster)", "ABC Jazz", "Berlin", "Best of Peter Gabriel",
            "Big Blue Swing", "Borboletta", "Brain Salad Surgery",           
            "Broadsword and the Beast (2005 Remaster)", "Celebrating Ennio Morricone - The Masterpiece Collection",
            "Classic Rock Florida - SHE RADIO", "Cruise Control", "Essential", "Free Hand (Steven Wilson 2021 Mix)",
            "GDRADIO - Grateful Dead Radio", "Heavy Horses (Steven Wilson Remix) [Explicit]",
            "Il Mio Discovery Mix", "Il Rock britannico", "In a Glass House", "In The Wake Of Poseidon", "Italia anni 70",
            "J-Tull Dot Com", "Jackson Browne (Saturate Before Using)", "Jesus Christ Superstar (Original Motion Picture Soundtrack)", 
            "Live in Los Angeles (feat. Alex Ligertwood)", "Lizard", "Love Is Strange", "Minstrel In The Gallery",
            "Motown Sound",  "Music Is Our Friend (Live in Washington and Albany, 2021)", "Octopus (Steven Wilson Mix)",
            "Party Soul & Funk", "Physical Graffiti (Remastered)", "Radio Caprice Big Band", "Radio Swiss Jazz",
            "Red (Expanded & Remastered Original Album Mix)", "RETRO 063: Pink Floyd", "RP Main Mix", "RP Mellow Mix",
            "RP Rock Mix", "RP World/Etc Mix", "Salisbury (Expanded Version)", "Songs from the Wood (40th Anniversary Edition) [The Steven Wilson Remix]",
            "Starless And Bible Black", "Stormwatch (Steven Wilson Remix) [40th Anniversary Special Edition]",
            "The Best", "The Very Best Of Jackson Browne", "The Zealot Gene", "Thick as a Brick (40th Anniversary Special Edition)", 
            "Thick as a Brick (Live in Iceland)", "Three Friends (2011 Remaster)", "Three Piece Suite (Steven Wilson Mix)", 
            "Ultra HD Classic Rock", "Virgin Radio", "Yes" ] | random }}'
          entity_id: media_player.salotto
      left_button_action: 
        service: media_player.select_source
        data:
          source: '{{ [ "A Passion Play (2014 Remaster)", "ABC Jazz", "Berlin", "Best of Peter Gabriel",
            "Big Blue Swing", "Borboletta", "Brain Salad Surgery",            
            "Broadsword and the Beast (2005 Remaster)", "Celebrating Ennio Morricone - The Masterpiece Collection",
            "Classic Rock Florida - SHE RADIO", "Cruise Control", "Essential", "Free Hand (Steven Wilson 2021 Mix)",
            "GDRADIO - Grateful Dead Radio", "Heavy Horses (Steven Wilson Remix) [Explicit]",
            "Il Mio Discovery Mix", "Il Rock britannico", "In a Glass House", "In The Wake Of Poseidon", "Italia anni 70",
            "J-Tull Dot Com", "Jackson Browne (Saturate Before Using)", "Jesus Christ Superstar (Original Motion Picture Soundtrack)", 
            "Live in Los Angeles (feat. Alex Ligertwood)",
            "Lizard", "Love Is Strange", "Minstrel In The Gallery",
            "Motown Sound",  "Music Is Our Friend (Live in Washington and Albany, 2021)", "Octopus (Steven Wilson Mix)",
            "Party Soul & Funk", "Physical Graffiti (Remastered)", "Radio Caprice Big Band", "Radio Swiss Jazz",
            "Red (Expanded & Remastered Original Album Mix)", "RETRO 063: Pink Floyd", "RP Main Mix", "RP Mellow Mix",
            "RP Rock Mix", "RP World/Etc Mix", "Salisbury (Expanded Version)", "Songs from the Wood (40th Anniversary Edition) [The Steven Wilson Remix]",
            "Starless And Bible Black", "Stormwatch (Steven Wilson Remix) [40th Anniversary Special Edition]",
            "The Best", "The Very Best Of Jackson Browne", "The Zealot Gene", "Thick as a Brick (40th Anniversary Special Edition)", 
            "Thick as a Brick (Live in Iceland)", "Three Friends (2011 Remaster)", "Three Piece Suite (Steven Wilson Mix)", 
            "Ultra HD Classic Rock", "Virgin Radio", "Yes" ] | random }}'
          entity_id: media_player.studio

and:

popup_sonos_favoriti:
  alias: Popup Sonos Favoriti
  sequence:
    service: browser_mod.popup
    data:
      content: In quale Sonos vuoi la Musica?
      right_button: Salotto     
      left_button: Studio
      right_button_action:
        service: media_player.select_source
        data:
          entity_id: media_player.salotto
          source: '{{ state_attr("sensor.sonos_favorites", "items").values() | list | random }}'
      left_button_action: 
        service: media_player.select_source
        data:
          entity_id: media_player.studio
          source: '{{ state_attr("sensor.sonos_favorites", "items").values() | list | random }}'

The script is working as expected on the instance of HA running in iMac chrome.
The same script is NOT working on the companion android mobile app and i think it depends from the browser_mod.popup service.
I noticed the browser_mod cannot be opened from the sidebar of companion app, or better gives me only a blank screen, but the device where the companion app is installed is regularly registered as browser_mod device.
How to have also the companion app a browser_mod registered device?
And is there someone who can trace the scripts to see where is the error?