Google translates the name of this mosque as Beyazıt State Library. Above an entrance a takes indicates it is a department of the state's "written remains", Istanbul department, in particular Beyazit department.
I was allowed to take a look inside, I took some pictures.