I created the interface of a lighting application and on screen 1 I made a button that turns on all the lamps, but the lamps on the second screen (which is also a button just like an image) do not light up when I press the button from screen 1.
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Either pass data through TinyDB to the other screens, or take the easier way and use stacked Vertical Arrangements instead of Screens.
Only show (.Visible) one Vertical Arrangement at a time.
Use only 1 screen as @ABG already recommended, see tip 1 here
Also there is a lot of redundancy in your blocks... learn to use procedures... you could have a procedure with 2 arguments, the number of the lamp and switching on or off. Like this you need the web blocks only one
Also you forgot to use the Web GotText event
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .