You can pass parameters to iframe through the src attribute. Please refer to the following article
https://www.metabase.com/docs/latest/embedding/static-embedding-parameters